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 16:45:40 -0400 Message-ID: <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 1539636309 31591 195.159.176.226 (15 Oct 2018 20:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 20:45:09 +0000 (UTC) To: 33053@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Oct 15 22:45:04 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 1gC9jb-00086C-4f for guile-bugs@m.gmane.org; Mon, 15 Oct 2018 22:45:03 +0200 Original-Received: from localhost ([::1]:54802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC9lh-0000Md-Ki for guile-bugs@m.gmane.org; Mon, 15 Oct 2018 16:47:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC9lZ-0000MT-NL for bug-guile@gnu.org; Mon, 15 Oct 2018 16:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC9lW-0000SJ-H3 for bug-guile@gnu.org; Mon, 15 Oct 2018 16:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC9lW-0000Rg-8T for bug-guile@gnu.org; Mon, 15 Oct 2018 16:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gC9lW-00049r-0R for bug-guile@gnu.org; Mon, 15 Oct 2018 16:47:02 -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 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33053 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153963638015929 (code B ref -1); Mon, 15 Oct 2018 20:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2018 20:46:20 +0000 Original-Received: from localhost ([127.0.0.1]:51528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC9kq-00048r-Ep for submit@debbugs.gnu.org; Mon, 15 Oct 2018 16:46:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC9ko-00048d-40 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 16:46:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC9ki-0008EO-4T for submit@debbugs.gnu.org; Mon, 15 Oct 2018 16:46:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC9kh-0008EH-LW for submit@debbugs.gnu.org; Mon, 15 Oct 2018 16:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC9kf-0000GB-M1 for bug-guile@gnu.org; Mon, 15 Oct 2018 16:46:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC9kc-00088e-29 for bug-guile@gnu.org; Mon, 15 Oct 2018 16:46:09 -0400 Original-Received: from world.peace.net ([64.112.178.59]:39856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC9kb-0007xp-P5 for bug-guile@gnu.org; Mon, 15 Oct 2018 16:46:05 -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 1gC9kQ-0005pT-Hp; Mon, 15 Oct 2018 16:45:54 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:9197 Archived-At: 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. Mark