From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#33053: scm_i_mirror_backslashes assumes ASCII-compatible locale encoding Date: Mon, 15 Oct 2018 19:06:53 -0400 Message-ID: <87d0saq06q.fsf@netris.org> References: <87lg6zos5n.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539644781 15914 195.159.176.226 (15 Oct 2018 23:06:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 23:06:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: 33053@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Oct 16 01:06:17 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCBwG-000437-Lu for guile-bugs@m.gmane.org; Tue, 16 Oct 2018 01:06:16 +0200 Original-Received: from localhost ([::1]:55222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCByM-00049i-Ni for guile-bugs@m.gmane.org; Mon, 15 Oct 2018 19:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCByD-00049b-LB for bug-guile@gnu.org; Mon, 15 Oct 2018 19:08:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCBy2-0005sZ-V4 for bug-guile@gnu.org; Mon, 15 Oct 2018 19:08:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCBxy-0005ph-3b for bug-guile@gnu.org; Mon, 15 Oct 2018 19:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCBxx-0007Rv-LG for bug-guile@gnu.org; Mon, 15 Oct 2018 19:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 15 Oct 2018 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33053 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 33053-submit@debbugs.gnu.org id=B33053.153964483328580 (code B ref 33053); Mon, 15 Oct 2018 23:08:01 +0000 Original-Received: (at 33053) by debbugs.gnu.org; 15 Oct 2018 23:07:13 +0000 Original-Received: from localhost ([127.0.0.1]:51598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCBxB-0007Qu-Iy for submit@debbugs.gnu.org; Mon, 15 Oct 2018 19:07:13 -0400 Original-Received: from world.peace.net ([64.112.178.59]:55252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCBxA-0007Qi-8r for 33053@debbugs.gnu.org; Mon, 15 Oct 2018 19:07:12 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCBx4-0008Br-9k; Mon, 15 Oct 2018 19:07:06 -0400 In-Reply-To: <87lg6zos5n.fsf@netris.org> (Mark H. Weaver's message of "Mon, 15 Oct 2018 16:45:40 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9198 Archived-At: Mark H Weaver writes: > The 'scm_i_mirror_backslashes' in load.c operates on C strings in the > locale encoding, and assumes that the locale encoding is ASCII > compatible. In the Shift_JIS encoding, used in the "JP_jp.sjis" locale, > backslash '\' is mapped to a multibyte character, and the Yen sign '=C2= =A5' > is represented using code 0x5C, the same code as backslash '\' in ASCII. > > As a result, users of the "JP_jp.sjis" locale will have Yen signs '=C2=A5= ' in > their file names converted into slashes by this function. I miswrote the locale name above. The locale name is "ja_JP.sjis". Mark