From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Trapuzzano Newsgroups: gmane.emacs.devel Subject: Re: Unibyte characters, strings, and buffers Date: Sat, 29 Mar 2014 13:08:37 -0400 Message-ID: <877g7d3pbe.fsf@nbtrap.com> 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> <87a9c9aqhu.fsf@nbtrap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396112960 28993 80.91.229.3 (29 Mar 2014 17:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2014 17:09:20 +0000 (UTC) Cc: Eli Zaretskii , monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 29 18:09:13 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 1WTwkn-00015y-OP for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2014 18:09:09 +0100 Original-Received: from localhost ([::1]:40205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTwkn-0000QM-A5 for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2014 13:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTwkd-0000Q6-Gx for emacs-devel@gnu.org; Sat, 29 Mar 2014 13:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTwkW-0008H2-Fl for emacs-devel@gnu.org; Sat, 29 Mar 2014 13:08:59 -0400 Original-Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:34756) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WTwkW-0008Gq-8U for emacs-devel@gnu.org; Sat, 29 Mar 2014 13:08:52 -0400 Original-Received: (qmail 7646 invoked by uid 0); 29 Mar 2014 17:08:49 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy4.mail.unifiedlayer.com with SMTP; 29 Mar 2014 17:08:49 -0000 Original-Received: from host393.hostmonster.com ([66.147.240.193]) by cmgw4 with id jc8f1n00Y4B3kjm01c8itm; Sat, 29 Mar 2014 18:08:48 -0600 X-Authority-Analysis: v=2.1 cv=L+eOHYj8 c=1 sm=1 tr=0 a=GZ6qK+eS4AuCRVUKGEKC+Q==:117 a=GZ6qK+eS4AuCRVUKGEKC+Q==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=4GsTxW34auoA:10 a=D0rjyWuMlWIA:10 a=lfvU_ReahkwA:10 a=ngU5ixn2AAAA:8 a=fWyWhr6xdMwA:10 a=4OALlA4Ahfiiiakt3Q4A:9 a=T1GfT9_SXI0A:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbtrap.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=gxl/F38oZGC/qF3+MQl33Z7OuqDCv3rLW8V8Uy3LAQM=; b=yc3gKxHfIiouSL30S+3ZC2W08LKByiI110c/OicMYDQW2HgLVEgAf9Zey+dAEHzs2JX/RTIs4f0QXh8zaDz5XEFaS2vl+WRW1JO7+OMkoSVcrz09MtkJDGi09P2fYHrP; Original-Received: from [50.90.253.209] (port=51266 helo=Nathan-GNU) by host393.hostmonster.com with esmtpsa (TLSv1.2:CAMELLIA128-SHA:128) (Exim 4.82) (envelope-from ) id 1WTwkK-0002Jq-TQ; Sat, 29 Mar 2014 11:08:41 -0600 In-Reply-To: <87a9c9aqhu.fsf@nbtrap.com> (Nathan Trapuzzano's message of "Sat, 29 Mar 2014 13:01:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Identified-User: {1585:host393.hostmonster.com:nbtrapco:nbtrap.com} {sentby:smtp auth 50.90.253.209 authed with nbtrap@nbtrap.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.23.142 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:171162 Archived-At: Nathan Trapuzzano writes: > For example, say we decode a stream of raw bytes as utf8, but that the > stream contains some non-utf8 sequences. Of course, most programming languages would simply refuse to decode by, e.g., throwing an exception. But that's not really appropriate for an editor. On one hand, you need some way to distinguish between characters and bytes, even if the distinction's not made by the type system; on the other hand, an _editor_ of all things should be able to deal with both kinds at the same time without the distinction being lost, and Emacs does a tremendous job at this IMO.