From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#12693: 24.2.50; src/w32font.c should depend on ANSI code page Date: Tue, 23 Oct 2012 19:52:30 +0800 Message-ID: <87k3uhjthd.fsf@gnu.org> References: <87y5j0ddgj.wl%%xmue@d1.dion.ne.jp> 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 1350993205 32120 80.91.229.3 (23 Oct 2012 11:53:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 11:53:25 +0000 (UTC) Cc: 12693@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 13:53:32 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 1TQd31-0005cM-GW for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 13:53:27 +0200 Original-Received: from localhost ([::1]:40579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQd2u-0003Gl-1F for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 07:53:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQd2l-0003Gb-Rk for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 07:53:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQd2k-0005Jh-QA for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 07:53:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQd2k-0005Ja-IT for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 07:53:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TQd4X-0006Po-Q0 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 07:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2012 11:55: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.135099328124626 (code B ref 12693); Tue, 23 Oct 2012 11:55:01 +0000 Original-Received: (at 12693) by debbugs.gnu.org; 23 Oct 2012 11:54:41 +0000 Original-Received: from localhost ([127.0.0.1]:57109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQd4B-0006P6-Kf for submit@debbugs.gnu.org; Tue, 23 Oct 2012 07:54:40 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:49179) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQd49-0006Ot-Ha for 12693@debbugs.gnu.org; Tue, 23 Oct 2012 07:54:38 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id fb11so2522142pad.3 for <12693@debbugs.gnu.org>; Tue, 23 Oct 2012 04:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=HFiMoMdpWhycmNt3F1U+wd6mzEZO0GObCXTuFCGMxic=; b=kBRyaQKK/2tPQY6uZZN5EzOjcPWH5TBQsrYyxrAxx0GGs3Ws1RQNnkY5dbsrgxqaoV LUmt0NLpV4Da/C3yIiXgxzHzxdlaOZahyUdPcwKRq10geQadQ2NFIjVSsEvevkvX0cnj w35x1h5FZH/hgnQ00tUc+CKuLNhuGViUx114Bf6N3S3oaa7q/TXwEb860Mfgt43SyID6 tqkg0AckJyGUzqOZ3+y4AcCE039eZisl4z8mZRXjPuDR3Ccu1pV5YxoO0DtqqVxNuSt4 zO7VIKi+Bdot639pJHMS9MoPsNh01JuVfBVlvY23qVScBODB8cNDIp+ABRHqRfaXDv1k jWUQ== Original-Received: by 10.68.209.136 with SMTP id mm8mr38992952pbc.146.1350993157569; Tue, 23 Oct 2012 04:52:37 -0700 (PDT) Original-Received: from home.jasonrumney.net ([180.75.59.151]) by mx.google.com with ESMTPS id rw5sm7590607pbc.54.2012.10.23.04.52.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 04:52:36 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id 983401505; Tue, 23 Oct 2012 19:52:30 +0800 (MYT) In-Reply-To: <87y5j0ddgj.wl%%xmue@d1.dion.ne.jp> (Kazuhiro Ito's message of "Sun, 21 Oct 2012 06:46:04 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) 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:65910 Archived-At: Kazuhiro Ito writes: > When I run Emacs on Cygwin with the native Windows UI, I can't specify > font by non-ascii font name. For example, the below code success on > precompiled binary on Windows (Japanese edition) but raises error on > Cygwin with the native Windows UI. > > (set-default-font "=EF=BC=AD=EF=BC=B3 =E3=82=B4=E3=82=B7=E3=83=83=E3=82= =AF-14") > > The reason is that lfFaceName member of LOGFONT structure is expected > to be encoded in ANSI code page, but Emacs encodes in or decodes as > the coding system specified in locale-coding-system variable. It is > set to utf-8-unix on Cygwin and causes the above problem. This is a problem with the Cygwin build's initialisation of locale-coding-system. It is supposed to be set to the coding system that system calls will accept, which on Windows cannot be utf-8 (maybe on recent versions it can be, but when I tried on Windows XP, it caused all manner of problems).