From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: recoding a buffer coding system Date: Sun, 16 Aug 2009 20:06:53 +0300 Message-ID: <83my5zit76.fsf@gnu.org> References: <87zla29j5p.fsf@uchicago.edu> <833a7tk2hb.fsf@gnu.org> <87hbw9m9mb.fsf@uchicago.edu> <6F6305D2-A661-4DA3-A5BB-02EA10068BB5@Web.DE> <87ab204hl6.fsf@uchicago.edu> <2644E203-1D16-44C2-9999-B7357386CD49@Web.DE> <83r5vcih1o.fsf@gnu.org> <87fxbr3m3e.fsf@uchicago.edu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250442575 7594 80.91.229.12 (16 Aug 2009 17:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 17:09:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 19:09:28 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by lo.gmane.org with esmtp (Exim 4.50) id 1McjEU-0003mM-Mc for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 19:09:26 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1McjES-0006Uv-Cq for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 17:09:24 +0000 Original-Received: from localhost ([127.0.0.1]:40258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McjES-00014B-7k for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 13:09:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McjE3-000145-I5 for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 13:08:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McjE2-00013t-1q for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 13:08:58 -0400 Original-Received: from [199.232.76.173] (port=33364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McjE1-00013q-Sy for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 13:08:57 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:30722) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McjE1-0000UO-Dy for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 13:08:57 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KOH00D00BJK2P00@i_mtaout3.012.net.il> for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 20:08:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.127.190]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KOH00L2GBMVH2E0@i_mtaout3.012.net.il> for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 20:08:56 +0300 (IDT) In-reply-to: <87fxbr3m3e.fsf@uchicago.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67196 Archived-At: > From: Santiago Mejia > Date: Sun, 16 Aug 2009 08:49:25 -0500 > > I tried debugging my program, by going step by step through the > (write-file "foo") and (insert-file-contents "foo") functions, to see if > I could figure out where was the conjuring trick done. However, I did > not quite found it (that is why I appealed to the list). I'm quite sure it works because insert-file-contents decodes the UTF-8 sequences into Unicode characters. That's not a bug, but the correct behavior. The bug seems to be in url-retrieve-synchronously, so you might as well stop looking at write-file and insert-file-contents.