From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas 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: Sun, 01 Dec 2019 09:21:56 +0100 Message-ID: <874kykihgb.fsf@marxist.se> References: <83h9ugltg1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32094"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Fujii Hironori , 19910@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 09:23:40 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ibKW2-0008CF-Si for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 09:23:39 +0100 Original-Received: from localhost ([::1]:41652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibKW0-0007qS-T7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 03:23:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48700) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibKVZ-0007qG-TC for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 03:23:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibKVW-0000HV-DN for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 03:23:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibKVT-0000F1-Gk for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 03:23:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibKVS-0004wh-Bj for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 03:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2019 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19910 X-GNU-PR-Package: emacs Original-Received: via spool by 19910-submit@debbugs.gnu.org id=B19910.157518852618923 (code B ref 19910); Sun, 01 Dec 2019 08:23:02 +0000 Original-Received: (at 19910) by debbugs.gnu.org; 1 Dec 2019 08:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:35452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibKUY-0004v8-0H for submit@debbugs.gnu.org; Sun, 01 Dec 2019 03:22:06 -0500 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:58376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibKUW-0004uc-0v for 19910@debbugs.gnu.org; Sun, 01 Dec 2019 03:22:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sX5x1dWuqJxn/c6QCnnY3v2J701+oEvaaOy90JkeTFs=; b=nUNB6OXX99pHeym3Bd/CeBayfl axpcV3FfH1lkPINu5hTrSISk4PwEcqOXV7jrMaepaBns/lY+xiNTnvXcsFF7Bof81aRWdjh8ULz+c jI0V2mG+aJYbHSgbKbY1J8rezo1iyWbRJSdv57OOmQ+q5M1NpacRjZJqN2GxNsMfEnPpq1FLUHjEn zZNqGqii81VqFAdy9Tg/g6Hh3gSou5g36aPCoJ57CgPLtI5hKgX0iGqgMFmG8AIem8CtSzJL8FWNs VRywtStKUpNzajPoPAqOlsP9QxuQD3no7oNocY08nWqqJvEJPsZyTjCuA3u3jlXyDcPQoxT+vQixK kbkbeRaQ==; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:38210 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1ibKUQ-001PWj-Dr; Sun, 01 Dec 2019 03:21:58 -0500 In-Reply-To: <83h9ugltg1.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Feb 2015 13:21:18 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:172699 Archived-At: Eli Zaretskii writes: >> Date: Fri, 20 Feb 2015 19:39:55 +0900 >> From: Fujii Hironori >> >> (font-family-list) returns incorrectly decoded Japanese font names. >> My locale-coding-system is utf-8-unix. >> >> If I do (setq locale-coding-system 'cp932), it returns correct font names. >> But, locale-coding-system is used in other places (e.g. M-x term and M-x man). >> locale-coding-system must be utf-8 in my Emacs. > > The problem is in w32font.c: it should call the "wide" (a.k.a. > "Unicode") APIs, and then decode strings using utf-16le, like we do in > w32fns.c with encoding strings we pass to w32 GUI APIs. That was 5 years ago. Is any of this still an issue on recent versions of Emacs? Best regards, Stefan Kangas