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#19910: 24.4; Japanese font names are decoded incorrectly in Cygwin's emacs-w32 in LANG=ja_JP.UTF-8 Date: Sat, 28 Feb 2015 14:46:19 +0200 Message-ID: <83a8zytd9g.fsf@gnu.org> References: <83h9ugltg1.fsf@gnu.org> <83y4nj49zx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425127642 10895 80.91.229.3 (28 Feb 2015 12:47:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2015 12:47:22 +0000 (UTC) Cc: 19910@debbugs.gnu.org To: Fujii Hironori Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 28 13:47:12 2015 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 1YRgnY-00033W-Bp for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 13:47:12 +0100 Original-Received: from localhost ([::1]:40993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRgnX-0006ca-MZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 07:47:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRgnT-0006bW-Ri for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 07:47:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRgnO-0001e2-Fz for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 07:47:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRgnO-0001du-DA for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 07:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YRgnN-0005AU-WC for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2015 07:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Feb 2015 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19910-submit@debbugs.gnu.org id=B19910.142512759319828 (code B ref 19910); Sat, 28 Feb 2015 12:47:01 +0000 Original-Received: (at 19910) by debbugs.gnu.org; 28 Feb 2015 12:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:60433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRgmv-00059j-AL for submit@debbugs.gnu.org; Sat, 28 Feb 2015 07:46:33 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46274) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRgms-00059U-3h for 19910@debbugs.gnu.org; Sat, 28 Feb 2015 07:46:31 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NKH00G00FCX3R00@a-mtaout21.012.net.il> for 19910@debbugs.gnu.org; Sat, 28 Feb 2015 14:46:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKH00G9ZFHA2D30@a-mtaout21.012.net.il>; Sat, 28 Feb 2015 14:46:22 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:99898 Archived-At: > Date: Sat, 28 Feb 2015 21:14:00 +0900 > From: Fujii Hironori > Cc: 19910@debbugs.gnu.org > > > I would actually suggest to have a Cygwin-only branches of the code, > > where you can freely call the "wide" APIs without bothering about > > Windows 9X, since that's what the Cygwin-w32 build does elsewhere, and > > since this is a Cygwin-specific problem due to the difference between > > file-name encoding and the locale emulated by Cygwin. There are a > > bunch of macros like GUI_STR and GUI_ENCODE_FILE near the end of > > w32term.h that can be used to minimize #ifdef's to the absolute > > minimum. > > If this approach is used, structs such as LOGFONT and ENUMLOGFONTEX > should be ranemed to GUI_FN(LOGFONT) and GUI_FN(ENUMLOGFONTEX). > This looks ugly. We use it in quite a few places in Emacs, so ugly or not, this is a kind of de-facto standard for resolving these issues. More importantly, it doesn't run the risk of breaking Emacs on Windows 9X. > The best way to solve this is defining _UNICODE. > Defining _UNICODE is already filed, but closed as wontfix. > > #265 - Build error with _UNICODE on w32. - GNU bug report logs > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=265 > > If Bug#265 is resolved, this bug (Bug#19910) will be resolved automatically. > And, _UNICODE macro can be used not only for Cygwin, but also NTEmacs. Most, if not all, of the issues which could motivate someone to use _UNICODE were meanwhile fixed, so reviving that now makes very little sense. In particular, the native Windows build already uses the Unicode APIs wherever feasible. (The particular issue discussed in this thread doesn't exist in the native build, AFAIU, because DECODE_SYSTEM does its job there.) Thanks.