unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
Cc: 12693@debbugs.gnu.org
Subject: bug#12693: 24.2.50; src/w32font.c should depend on ANSI code page
Date: Tue, 23 Oct 2012 19:52:30 +0800	[thread overview]
Message-ID: <87k3uhjthd.fsf@gnu.org> (raw)
In-Reply-To: <87y5j0ddgj.wl%%xmue@d1.dion.ne.jp> (Kazuhiro Ito's message of "Sun, 21 Oct 2012 06:46:04 +0900")

Kazuhiro Ito <kzhr@d1.dion.ne.jp> 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 "MS ゴシック-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).







  reply	other threads:[~2012-10-23 11:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-20 21:46 bug#12693: 24.2.50; src/w32font.c should depend on ANSI code page Kazuhiro Ito
2012-10-23 11:52 ` Jason Rumney [this message]
2012-10-23 13:05   ` Kazuhiro Ito
2012-10-23 16:22     ` Eli Zaretskii
2012-10-25 21:18       ` Daniel Colascione
2012-10-26  7:30         ` Eli Zaretskii
2012-10-23 16:12   ` Eli Zaretskii
2020-09-13 16:16 ` bug#12693: [cygwin] Setting fonts with non-ascii names throws error quit Lars Ingebrigtsen
2020-09-14  8:40   ` Kazuhiro Ito
2020-09-14 10:52     ` Lars Ingebrigtsen
2020-09-14 11:38       ` Kazuhiro Ito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3uhjthd.fsf@gnu.org \
    --to=jasonr@gnu.org \
    --cc=12693@debbugs.gnu.org \
    --cc=kzhr@d1.dion.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).