From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Crashes with non-default language environments Date: Mon, 11 Feb 2008 09:06:01 -0500 Message-ID: References: <87y79wve9b.fsf@jurta.org> <87zlu96bp2.fsf@jurta.org> <87prv4l96f.fsf@jurta.org> <87lk5scl3a.fsf@catnip.gol.com> <874pcgceu5.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202738811 19903 80.91.229.12 (11 Feb 2008 14:06:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 14:06:51 +0000 (UTC) Cc: Juri Linkov , emacs-pretest-bug@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 15:07:11 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 1JOZJ0-0005Az-CP for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 15:06:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOZIX-0004cl-0q for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 09:06:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOZIS-0004cc-HC for emacs-devel@gnu.org; Mon, 11 Feb 2008 09:06:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOZIP-0004cA-VW for emacs-devel@gnu.org; Mon, 11 Feb 2008 09:06:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOZIP-0004c7-RB for emacs-devel@gnu.org; Mon, 11 Feb 2008 09:06:09 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOZIP-0002fx-LC for emacs-devel@gnu.org; Mon, 11 Feb 2008 09:06:09 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JOZIP-0000aW-7i for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 09:06:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JOZIM-0002f3-7L for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 09:06:09 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOZIL-0002el-TE; Mon, 11 Feb 2008 09:06:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAI/lr0dMCpK7/2dsb2JhbACnbHs X-IronPort-AV: E=Sophos;i="4.25,333,1199682000"; d="scan'208";a="14021189" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 11 Feb 2008 09:06:02 -0500 Original-Received: from pastel.home ([76.10.146.187]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id RQR07002; Mon, 11 Feb 2008 09:06:02 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 67B2F800F; Mon, 11 Feb 2008 09:06:01 -0500 (EST) In-Reply-To: <874pcgceu5.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 11 Feb 2008 13:11:14 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:88750 gmane.emacs.pretest.bugs:21026 Archived-At: >>>> 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. > I find the names of all these function incredibly confusing though... Agreed. > What's really wanted here, is something like > vector-to-raw-string-dont-you-dare-do-any-encoding, right? > [As the bytecode engine wants raw bytes with the same numbers, which > just happened to be inside a string] The problem is that "no encoding" means different things to different people. At some point I proposed to just throw out all those functions, and force people to use encode/decode-coding-string instead, which forces them to think a bit about what they're doing. Oh, and throw away the `no-conversion' coding-system, of course, since it has the same problem. Stefan