From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Crashes with non-default language environments Date: Tue, 12 Feb 2008 20:41:48 +0900 Message-ID: References: <87y79wve9b.fsf@jurta.org> <87zlu96bp2.fsf@jurta.org> <87prv4l96f.fsf@jurta.org> <87lk5scl3a.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1202816610 8450 80.91.229.12 (12 Feb 2008 11:43:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 11:43:30 +0000 (UTC) Cc: juri@jurta.org, emacs-pretest-bug@gnu.org, miles@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 12:43:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOtYG-0005WI-Ca for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 12:43:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOtXm-0006GS-VA for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 06:43:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOtWY-0005Lf-7K for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:42:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOtWW-0005K7-Ok for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:42:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOtWW-0005Jo-H0 for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:42:04 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOtWW-0005WA-4I for emacs-devel@gnu.org; Tue, 12 Feb 2008 06:42:04 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JOtWV-00086l-Pg for emacs-pretest-bug@gnu.org; Tue, 12 Feb 2008 06:42:03 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JOtWS-0005VQ-Or for emacs-pretest-bug@gnu.org; Tue, 12 Feb 2008 06:42:03 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOtWO-0005UL-1b; Tue, 12 Feb 2008 06:41:56 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m1CBfnxC019521; Tue, 12 Feb 2008 20:41:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m1CBfnqt000385; Tue, 12 Feb 2008 20:41:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id m1CBfm6f014410; Tue, 12 Feb 2008 20:41:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.68) (envelope-from ) id 1JOtWG-0002z9-EH; Tue, 12 Feb 2008 20:41:48 +0900 In-reply-to: (message from Stefan Monnier on Sun, 10 Feb 2008 22:02:00 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88852 gmane.emacs.pretest.bugs:21043 Archived-At: In article , Stefan Monnier writes: >>> Of course, string-AS-unibyte is the worst of all three. But nobody >>> suggested to use that one. I just suggested to replace >>> string-MAKE-uniybte by string-TO-unibyte. > > Where's this string-to-unibyte function? My emacs doesn't have it... > Oh, that's right, we still don't have it. We only have the 3 variants > on the uni->multi, but not on the multi->uni. > I guess now is a good time to introduce it. But, even if we implement string-to-unibyte, it should be used for a string containing only ascii and eight-bit chars. And in that case, string-make-unibyte behaves exactly the same as string-to-unibyte. Miles Bader writes: [...] > Ok, perhaps > `vector-to-raw-string-whose-bytes-in-memory-should-have-exactly-the-same-values-as-the-elements-of-this-vector'. We now have `list-to-raw-string-whose-bytes-in-memory-should-have-exactly-the-same-values-as-the-elements-of-this-list'; that is `unibyte-string' --- Kenichi Handa handa@ni.aist.go.jp