From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Unibyte characters, strings, and buffers Date: Sat, 29 Mar 2014 12:30:51 +0100 Message-ID: References: <831txozsqa.fsf@gnu.org> <83ppl7y30l.fsf@gnu.org> <87r45nouvx.fsf@uwakimon.sk.tsukuba.ac.jp> <8361myyac6.fsf@gnu.org> <87a9capqfr.fsf@uwakimon.sk.tsukuba.ac.jp> <83eh1mfd09.fsf@gnu.org> <87ob0pnyt6.fsf@uwakimon.sk.tsukuba.ac.jp> <83ob0pe0va.fsf@gnu.org> <83k3bddzhg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396092665 16825 80.91.229.3 (29 Mar 2014 11:31:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2014 11:31:05 +0000 (UTC) Cc: stephen@xemacs.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 29 12:31:14 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTrTl-0005Y4-Vj for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2014 12:31:14 +0100 Original-Received: from localhost ([::1]:38512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTrTl-0006sB-Ic for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2014 07:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTrTe-0006qC-MX for emacs-devel@gnu.org; Sat, 29 Mar 2014 07:31:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTrTZ-0004ja-UG for emacs-devel@gnu.org; Sat, 29 Mar 2014 07:31:06 -0400 Original-Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:57911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTrTU-0004gN-HQ; Sat, 29 Mar 2014 07:30:56 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3fwyRd3Ly6z3hjCK; Sat, 29 Mar 2014 12:30:53 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fwyRd2NXCzbbsl; Sat, 29 Mar 2014 12:30:53 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id BSKaHxEIblVt; Sat, 29 Mar 2014 12:30:52 +0100 (CET) X-Auth-Info: faMQVujMo6+uBzwPmf4SNan2NsWV546qvj9adfAE+PA= Original-Received: from linux.local (ppp-188-174-150-178.dynamic.mnet-online.de [188.174.150.178]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 29 Mar 2014 12:30:52 +0100 (CET) Original-Received: by linux.local (Postfix, from userid 501) id 681A51E55E0; Sat, 29 Mar 2014 12:30:51 +0100 (CET) X-Yow: Either CONFESS now or we go to ``PEOPLE'S COURT''!! In-Reply-To: <83k3bddzhg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Mar 2014 14:18:51 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 2001:a60:0:28:0:1:25:1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171140 Archived-At: Eli Zaretskii writes: > Next question: what happens to implementation of encoding? It > currently produces raw bytes. Should it produce eight-bit characters > instead? If not, who or what will convert raw bytes into eight-bit > characters, when they are inserted into a buffer or string, and who or > what will convert them back when they are written to a file or sent to > a process? Writing out a character in the eight-bit charset will produce an eight-bit character, and vice-versa. The process is the same, just put on a lower level. The only visible difference will be the value of aref: it will produce values in the range of the eight-bit charset instead of 128-255. The challenge will be to find and fix all such assumptions. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."