From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12807: AW: bug#12807: 24.2; Emacs cannot edit file with funny Unicode characters in the file name on Windows Date: Tue, 06 Nov 2012 05:57:45 +0200 Message-ID: <83lief2xja.fsf@gnu.org> References: <84wqxzepsa.fsf@cartan.de> <83mwyv3eny.fsf@gnu.org> <001601cdbba1$bc4cf020$34e6d060$@de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1352174338 644 80.91.229.3 (6 Nov 2012 03:58:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2012 03:58:58 +0000 (UTC) Cc: 12807@debbugs.gnu.org To: Nils =?UTF-8?Q?G=C3=B6sche?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 04:59:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TVaJf-000470-OB for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2012 04:59:07 +0100 Original-Received: from localhost ([::1]:38189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVaJW-0000b9-Qv for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 22:58:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVaJT-0000az-Bj for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 22:58:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVaJS-00009X-AE for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 22:58:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVaJS-00009S-6Q for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 22:58:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TVaMU-0006ax-Aq for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 23:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Nov 2012 04:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12807 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 12807-submit@debbugs.gnu.org id=B12807.135217446425284 (code B ref 12807); Tue, 06 Nov 2012 04:02:02 +0000 Original-Received: (at 12807) by debbugs.gnu.org; 6 Nov 2012 04:01:04 +0000 Original-Received: from localhost ([127.0.0.1]:51396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVaLY-0006Zl-5d for submit@debbugs.gnu.org; Mon, 05 Nov 2012 23:01:04 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36588) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVaLU-0006ZJ-JG for 12807@debbugs.gnu.org; Mon, 05 Nov 2012 23:01:02 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MD100700SBL6Y00@a-mtaout22.012.net.il> for 12807@debbugs.gnu.org; Tue, 06 Nov 2012 05:57:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MD10060CSCDX380@a-mtaout22.012.net.il>; Tue, 06 Nov 2012 05:57:49 +0200 (IST) In-reply-to: <001601cdbba1$bc4cf020$34e6d060$@de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66518 Archived-At: > From: Nils G=C3=B6sche > Cc: <12807@debbugs.gnu.org> > Date: Mon, 5 Nov 2012 23:05:57 +0100 >=20 > > Yes, but the Explorer and the Notepad are about the only programs= that > > do. Many others don't. Emacs is one of them. >=20 > =C2=BBAbout the only=C2=AB is a bit of an exaggeration ;-) Anythin= g that is written > in C# or Java shouldn't have that problem; or Common Lisp, come to = think of > it. But yeah, back in the old days, pretty much nobody felt like us= ing > wchar_t instead of char everywhere in C. I didn't, either, back the= n. (Not > to mention that in the really old days, wchar_t didn't even exist ;= -) Using wchar_t is not going to solve the whole problem, unfortunately. The problem is that the mainline Emacs code uses APIs that don't accept wide characters. Examples include 'stat', 'access', 'open', 'fopen', etc. To fix the problem, we'd need to provide our own implementation of these APIs that would accept a UTF-8 encoded file name, then re-encode the file name in UTF-16, and call the Unicode APIs as part of the implementation. This is a large job.