From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#12693: 24.2.50; src/w32font.c should depend on ANSI code page Date: Thu, 25 Oct 2012 14:18:07 -0700 Message-ID: <5089AC8F.6000900@dancol.org> References: <87y5j0ddgj.wl%%xmue@d1.dion.ne.jp> <87k3uhjthd.fsf@gnu.org> <87a9vdgwyd.wl%%xmue@d1.dion.ne.jp> <83y5ixb1l2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD15F2F83A98301923307582F" X-Trace: ger.gmane.org 1351199944 6508 80.91.229.3 (25 Oct 2012 21:19:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 21:19:04 +0000 (UTC) Cc: Kazuhiro Ito , 12693@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 23:19:12 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 1TRUpZ-0002mT-13 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 23:19:09 +0200 Original-Received: from localhost ([::1]:45963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRUpQ-0003sX-UD for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 17:19:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRUpO-0003sS-29 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 17:18:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRUpN-00068j-1H for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 17:18:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRUpM-00068f-UA for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 17:18:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TRUrO-0001va-0C for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 17:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2012 21:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12693 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: patch Original-Received: via spool by 12693-submit@debbugs.gnu.org id=B12693.13512000257367 (code B ref 12693); Thu, 25 Oct 2012 21:21:01 +0000 Original-Received: (at 12693) by debbugs.gnu.org; 25 Oct 2012 21:20:25 +0000 Original-Received: from localhost ([127.0.0.1]:33792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRUqn-0001ul-6u for submit@debbugs.gnu.org; Thu, 25 Oct 2012 17:20:25 -0400 Original-Received: from dancol.org ([96.126.100.184]:35309) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRUqk-0001ud-JJ for 12693@debbugs.gnu.org; Thu, 25 Oct 2012 17:20:23 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TRUoe-000050-TQ; Thu, 25 Oct 2012 14:18:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: <83y5ixb1l2.fsf@gnu.org> X-Enigmail-Version: 1.4.5 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 (newer, 2) 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:66062 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD15F2F83A98301923307582F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10/23/2012 9:22 AM, Eli Zaretskii wrote: >> Date: Tue, 23 Oct 2012 22:05:46 +0900 >> From: Kazuhiro Ito >> Cc: 12693@debbugs.gnu.org >> >> On Cygwin, locale-coding-system's value depends on its environment. >> For example, >> >> $ env LANG=3Dja_JP.CP932 emacs --batch --eval '(princ locale-coding-sy= stem)' >> -> japanese-cp932-unix >> >> $ env LANG=3Dja_JP.UTF-8 emacs --batch --eval '(princ locale-coding-sy= stem)' >> -> utf-8-unix >=20 > This is not necessarily relevant to Emacs, or at least doesn't provide > a definitive answer to the question what encoding should ENCODE_SYSTEM > use in the cygw32 build, which is a kind of androgen wrt encoding and > decoding issues. >=20 > There are several places where this issue might (or will) pop up: >=20 > . decoding keyboard key events Already handled, I believe. > . encoding and decoding file names We talk to Cygwin here, so there's no problem using locale-coding-system.= > . encoding strings passed to various non-file APIs, like the one you > mentioned I tried to ferret these out what I was doing the initial port, but it loo= ks like I missed the font code. >=20 > At least the first 2 items use different single-byte encoding in the > GUI and the console frames. >=20 > Someone(TM) should analyze all these and come up with recommendations > whether cygw32 should cater to the normal Cygwin locale, or maybe for > practical reasons it should do something else. The right code for Cygw32 is to always define NTGUI_UNICODE and unconditi= onally use Unicode APIs when NTGUI_UNICODE is set. Maybe, someday, we can define= NTGUI_UNICODE for the NT port too. --------------enigD15F2F83A98301923307582F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCJrJIACgkQ17c2LVA10VttFwCeK7B47Re3O96p20fbH0wYqErL Qz8AoI3p4GdwLa4ILT9PNShrQmi5FTRe =I4in -----END PGP SIGNATURE----- --------------enigD15F2F83A98301923307582F--