From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Crashes with non-default language environments Date: Mon, 11 Feb 2008 23:27:28 +0200 Organization: JURTA Message-ID: <87ve4v9nk0.fsf@jurta.org> 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 1202767022 2616 80.91.229.12 (11 Feb 2008 21:57:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 21:57:02 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 22:57:25 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 1JOgeR-0005r7-FH for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 22:57:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOgdy-0001cf-7t for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 16:56:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOgdO-0001P4-JO for emacs-devel@gnu.org; Mon, 11 Feb 2008 16:56:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOgdM-0001NU-Vr for emacs-devel@gnu.org; Mon, 11 Feb 2008 16:56:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOgdM-0001NM-IQ for emacs-devel@gnu.org; Mon, 11 Feb 2008 16:56:16 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOgdM-0000As-ED for emacs-devel@gnu.org; Mon, 11 Feb 2008 16:56:16 -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 1JOgdL-00082D-TZ for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 16:56:16 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JOgdJ-0000AJ-0v for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 16:56:16 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOgdI-00009z-LJ; Mon, 11 Feb 2008 16:56:12 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JOgdD-000LBR-Mt; Mon, 11 Feb 2008 23:56:10 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 11 Feb 2008 09:06:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2223 [Feb 11 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) 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:88796 gmane.emacs.pretest.bugs:21035 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. Ah, sorry, since I've found no such function I assumed a typo. I think adding a new function string-to-unibyte to complement string-to-multibyte and other 2 multi->uni functions would be a good thing for the short term even though all these names are confusing. >> 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. Since all those uni->multi/multi->uni functions have non-descriptive names, using encode/decode-coding-string with explicit coding will help writing more clean and less error-prone code. So I'd give a vote for it. -- Juri Linkov http://www.jurta.org/emacs/