GNU bug report logs - #39286
27.0.60; Wrong font for Cyrillic characters in emacs buffer

Previous Next

Package: emacs;

Reported by: jumper 047 <jumper047 <at> gmail.com>

Date: Sun, 26 Jan 2020 08:34:02 UTC

Severity: normal

Tags: moreinfo

Found in version 27.0.60

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39286 in the body.
You can then email your comments to 39286 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Sun, 26 Jan 2020 08:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jumper 047 <jumper047 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 26 Jan 2020 08:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jumper 047 <jumper047 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
Date: Sun, 26 Jan 2020 11:06:11 +0300
[Message part 1 (text/plain, inline)]
To reporduce launch 'emacs -Q', then type C-x 8 RET 444 RET inside
*scratch* buffer.
Expected character 'ф' displayed with font Courier New, but got
character displayed with BatangChe


In GNU Emacs 27.0.60 (build 1, x86_64-w64-mingw32)
 of 2019-12-29 built on CIRROCUMULUS
Repository revision: 21c3020fcec0a32122d2680a391864a75393031b
Repository branch: emacs-27
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
System Description: Microsoft Windows 7 Professional Service Pack 1
(v6.1.1130.7601.24544)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
<scroll> is undefined
Quit
Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install -C 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: RU
  locale-coding-system: cp1251

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 48850 9493)
 (symbols 48 6424 1)
 (strings 32 17234 1955)
 (string-bytes 1 529944)
 (vectors 16 10818)
 (vector-slots 8 136883 15172)
 (floats 8 22 281)
 (intervals 56 605 2573)
 (buffers 1000 12))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Sun, 26 Jan 2020 17:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jumper 047 <jumper047 <at> gmail.com>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Sun, 26 Jan 2020 19:10:15 +0200
> From: jumper 047 <jumper047 <at> gmail.com>
> Date: Sun, 26 Jan 2020 11:06:11 +0300
> 
> To reporduce launch 'emacs -Q', then type C-x 8 RET 444 RET inside
> *scratch* buffer.
> Expected character 'ф' displayed with font Courier New, but got
> character displayed with BatangChe

Thanks.  This is very strange, since the Courier New font, which is
used for the default face in "emacs -Q" on Windows, does have that
character.  I tried on 2 different Windows systems, and on both Emacs
used Courier New.

Does anyone else see this?

Could you please do the following and post the results?

  emacs -Q
  M-: (setq font-log nil) RET
  C-x 8 RET 444 RET
  RET
  font-log C-j

The "font-log" part in the last line should be on a separate line in
the *scratch* buffer (that's what RET before it is meant to arrange),
and C-j (i.e. Ctrl-j) should be pressed with the cursor after the 'g'
character that ends "font-log".

The result of C-j will be a long list, with some "..." in it.  Please
go to each such "..." and press RET on it, to have the list fully
expanded.  Then post here that list.

Thanks.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Fri, 31 Jan 2020 06:43:01 GMT) Full text and rfc822 format available.

Message #11 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Дмитрий <jumper047 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Fri, 31 Jan 2020 09:42:21 +0300
[Message part 1 (text/plain, inline)]
Sorry for waiting.
There is output:

((sort-by "-*-bold-normal-normal-*-13-*" "harfbuzz:-outline-Courier New-bold-normal-normal-mono-*-c-*-iso8859-1") (list "-outline-Courier New-*-mono-*-iso8859-1" ["-outline-Courier New-bold-italic-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-bold-normal-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-normal-italic-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-normal-normal-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-bold-italic-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-bold-normal-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-normal-italic-normal-mono-*-c-*-iso8859-1" "-outline-Courier New-normal-normal-normal-mono-*-c-*-iso8859-1"]) (default\ fontset:\ font\ for 1092 nil) (open "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-13-*-c-*-gb2312.1980-0") (sort-by "-*-normal-normal-normal-*-13-*" "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0") (list "-outline-*-mono-*-gb2312.1980-0" ["-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" ...]) (w32font-list "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (harfbuzz-list "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (list "-*-Courier New-*-gb2312.1980-0" nil) (w32font-list "-*-Courier New-*-gb2312.1980-0" nil) (harfbuzz-list "-*-Courier New-*-gb2312.1980-0" nil) (list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) ...)




On January 26, 2020 8:10:15 PM GMT+03:00, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: jumper 047 <jumper047 <at> gmail.com>
>> Date: Sun, 26 Jan 2020 11:06:11 +0300
>> 
>> To reporduce launch 'emacs -Q', then type C-x 8 RET 444 RET inside
>> *scratch* buffer.
>> Expected character 'ф' displayed with font Courier New, but got
>> character displayed with BatangChe
>
>Thanks.  This is very strange, since the Courier New font, which is
>used for the default face in "emacs -Q" on Windows, does have that
>character.  I tried on 2 different Windows systems, and on both Emacs
>used Courier New.
>
>Does anyone else see this?
>
>Could you please do the following and post the results?
>
>  emacs -Q
>  M-: (setq font-log nil) RET
>  C-x 8 RET 444 RET
>  RET
>  font-log C-j
>
>The "font-log" part in the last line should be on a separate line in
>the *scratch* buffer (that's what RET before it is meant to arrange),
>and C-j (i.e. Ctrl-j) should be pressed with the cursor after the 'g'
>character that ends "font-log".
>
>The result of C-j will be a long list, with some "..." in it.  Please
>go to each such "..." and press RET on it, to have the list fully
>expanded.  Then post here that list.
>
>Thanks.

-- 
Простите за краткость, создано в K-9 Mail.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Fri, 31 Jan 2020 08:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Дмитрий <jumper047 <at> gmail.com>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Fri, 31 Jan 2020 10:50:45 +0200
> Date: Fri, 31 Jan 2020 09:42:21 +0300
> CC: 39286 <at> debbugs.gnu.org
> From: Дмитрий <jumper047 <at> gmail.com>
> 
> Sorry for waiting.
> There is output:

Thanks.  This still has the ellipsis "..." at the end:

> (list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) ...)
                                                     ^^^
So please repeat the experiment, but this time go to the ellipsis and
press RET on it.  That should expand the list to make it longer;
please post the full result.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Fri, 31 Jan 2020 09:14:02 GMT) Full text and rfc822 format available.

Message #17 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Дмитрий <jumper047 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Fri, 31 Jan 2020 12:13:18 +0300
[Message part 1 (text/plain, inline)]
Ohh, i thought it was just ellipsis.


((open "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-13-*-c-*-gb2312.1980-0") (sort-by "-*-normal-normal-normal-*-13-*" "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0") (list "-outline-*-mono-*-gb2312.1980-0" ["-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0"]) (w32font-list "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (harfbuzz-list "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (list "-*-Courier New-*-gb2312.1980-0" nil) (w32font-list "-*-Courier New-*-gb2312.1980-0" nil) (harfbuzz-list "-*-Courier New-*-gb2312.1980-0" nil) (list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) (w32font-list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) (harfbuzz-list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) (list "-outline-Courier New-*-gb2312.1980-0" nil) (w32font-list "-outline-Courier New-*-gb2312.1980-0" nil) (harfbuzz-list "-outline-Courier New-*-gb2312.1980-0" nil) (list "-outline-Courier New-*-mono-*-gb2312.1980-0" nil) (w32font-list "-outline-Courier New-*-mono-*-gb2312.1980-0" nil) (harfbuzz-list "-outline-Courier New-*-mono-*-gb2312.1980-0" nil) (list "-*-iso8859-5" nil) (w32font-list "-*-iso8859-5" nil) (harfbuzz-list "-*-iso8859-5" nil) (list "-*-mono-*-iso8859-5" nil) (w32font-list "-*-mono-*-iso8859-5" nil) (harfbuzz-list "-*-mono-*-iso8859-5" nil) (list "-outline-*-iso8859-5" nil) (w32font-list "-outline-*-iso8859-5" nil) (harfbuzz-list "-outline-*-iso8859-5" nil) (list "-outline-*-mono-*-iso8859-5" nil) (w32font-list "-outline-*-mono-*-iso8859-5" nil) (harfbuzz-list "-outline-*-mono-*-iso8859-5" nil) (list "-*-Courier New-*-iso8859-5" nil) (w32font-list "-*-Courier New-*-iso8859-5" nil) (harfbuzz-list "-*-Courier New-*-iso8859-5" nil) (list "-*-Courier New-*-mono-*-iso8859-5" nil) (w32font-list "-*-Courier New-*-mono-*-iso8859-5" nil) (harfbuzz-list "-*-Courier New-*-mono-*-iso8859-5" nil) (list "-outline-Courier New-*-iso8859-5" nil) (w32font-list "-outline-Courier New-*-iso8859-5" nil) (harfbuzz-list "-outline-Courier New-*-iso8859-5" nil) (list "-outline-Courier New-*-mono-*-iso8859-5" nil) (w32font-list "-outline-Courier New-*-mono-*-iso8859-5" nil) (harfbuzz-list "-outline-Courier New-*-mono-*-iso8859-5" nil) (default\ fontset:\ font\ for 1092 nil))




On January 31, 2020 11:50:45 AM GMT+03:00, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> Date: Fri, 31 Jan 2020 09:42:21 +0300
>> CC: 39286 <at> debbugs.gnu.org
>> From: Дмитрий <jumper047 <at> gmail.com>
>> 
>> Sorry for waiting.
>> There is output:
>
>Thanks.  This still has the ellipsis "..." at the end:
>
>> (list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) ...)
>                                                     ^^^
>So please repeat the experiment, but this time go to the ellipsis and
>press RET on it.  That should expand the list to make it longer;
>please post the full result.

-- 
Простите за краткость, создано в K-9 Mail.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Sun, 07 Feb 2021 16:10:02 GMT) Full text and rfc822 format available.

Message #20 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Дмитрий <jumper047 <at> gmail.com>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Sun, 07 Feb 2021 18:09:23 +0200
> Date: Fri, 31 Jan 2020 12:13:18 +0300
> From: Дмитрий <jumper047 <at> gmail.com>
> Cc: 39286 <at> debbugs.gnu.org

A year later, I bumped into a system where I saw something very
similar, so I debugged this.

> ((open "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-13-*-c-*-gb2312.1980-0") (sort-by
> "-*-normal-normal-normal-*-13-*"
> "harfbuzz:-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0") (list
> "-outline-*-mono-*-gb2312.1980-0" ["-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0"]) (w32font-list
> "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (harfbuzz-list
> "-outline-*-mono-*-gb2312.1980-0" ("-outline-BatangChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GungsuhChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-GulimChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-DotumChe-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-MingLiU-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Gothic-normal-normal-normal-mono-*-c-*-gb2312.1980-0" "-outline-MS
> Mincho-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-NSimSun-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-FangSong-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-SimHei-normal-normal-normal-mono-*-c-*-gb2312.1980-0"
> "-outline-KaiTi-normal-normal-normal-mono-*-c-*-gb2312.1980-0")) (list "-*-Courier New-*-gb2312.1980-0"
> nil) (w32font-list "-*-Courier New-*-gb2312.1980-0" nil) (harfbuzz-list "-*-Courier New-*-gb2312.1980-0" nil)
> (list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) (w32font-list "-*-Courier New-*-mono-*-gb2312.1980-0"
> nil) (harfbuzz-list "-*-Courier New-*-mono-*-gb2312.1980-0" nil) (list "-outline-Courier New-*-gb2312.1980-0"
> nil) (w32font-list "-outline-Courier New-*-gb2312.1980-0" nil) (harfbuzz-list "-outline-Courier
> New-*-gb2312.1980-0" nil) (list "-outline-Courier New-*-mono-*-gb2312.1980-0" nil) (w32font-list
> "-outline-Courier New-*-mono-*-gb2312.1980-0" nil) (harfbuzz-list "-outline-Courier
> New-*-mono-*-gb2312.1980-0" nil) (list "-*-iso8859-5" nil) (w32font-list "-*-iso8859-5" nil) (harfbuzz-list
> "-*-iso8859-5" nil) (list "-*-mono-*-iso8859-5" nil) (w32font-list "-*-mono-*-iso8859-5" nil) (harfbuzz-list
> "-*-mono-*-iso8859-5" nil) (list "-outline-*-iso8859-5" nil) (w32font-list "-outline-*-iso8859-5" nil) (harfbuzz-list
> "-outline-*-iso8859-5" nil) (list "-outline-*-mono-*-iso8859-5" nil) (w32font-list "-outline-*-mono-*-iso8859-5"
> nil) (harfbuzz-list "-outline-*-mono-*-iso8859-5" nil) (list "-*-Courier New-*-iso8859-5" nil) (w32font-list
> "-*-Courier New-*-iso8859-5" nil) (harfbuzz-list "-*-Courier New-*-iso8859-5" nil) (list "-*-Courier
> New-*-mono-*-iso8859-5" nil) (w32font-list "-*-Courier New-*-mono-*-iso8859-5" nil) (harfbuzz-list
> "-*-Courier New-*-mono-*-iso8859-5" nil) (list "-outline-Courier New-*-iso8859-5" nil) (w32font-list
> "-outline-Courier New-*-iso8859-5" nil) (harfbuzz-list "-outline-Courier New-*-iso8859-5" nil) (list
> "-outline-Courier New-*-mono-*-iso8859-5" nil) (w32font-list "-outline-Courier New-*-mono-*-iso8859-5" nil)
> (harfbuzz-list "-outline-Courier New-*-mono-*-iso8859-5" nil) (default\ fontset:\ font\ for 1092 nil))

Note that iso10646-1 charset never appears in the above log, although
the setup for Cyrillic in the default fontset is this:

     (cyrillic ,(font-spec :registry "iso10646-1" :script 'cyrillic)
	       (nil . "ISO8859-5")
	       (nil . "microsoft-cp1251")
	       (nil . "koi8-r"))

IOW, iso10646-1 is the first registry value Emacs should have tried,
but it is nowhere to be seen in the above log.

The reason for this is that the fontset is reordered according to the
locale's preferences, as recorded in Vcharset_ordered_list and
Vcharset_non_preferred_head, and these are screwed up because Windows
returns to us a bogus locale name "ZZZ".  That causes the iso10646-1
part of the Cyrillic fontset to be pushed way down the preference
order, and we begin by examining the other registry values.

Even so, iso8859-5 should have saved the day, but there's another
problem: we don't have information in w32-charset-info-alist for
mapping iso-8859-5 into Windows charset constants.

So I have now fixed both problems on the emacs-27 branch, and as
result the Cyrillic characters are displayed using Courier New, as
expected.

Do you still have access to that system where you saw the problem?  If
so, can you build Emacs from the recent emacs-27 branch and see if the
problem is solved?  Even if you cannot build Emacs, I can tell you how
to fix the problem manually.

Thanks.




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 07 Feb 2021 16:13:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Sun, 07 Feb 2021 18:01:01 GMT) Full text and rfc822 format available.

Message #25 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jumper 047 <jumper047 <at> gmail.com>
Cc: 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Sun, 07 Feb 2021 20:00:07 +0200
> From: jumper 047 <jumper047 <at> gmail.com>
> Date: Sun, 7 Feb 2021 20:38:00 +0300
> 
> It's amazing news! Not sure when I'll have access to that system, maybe a new version will be released that
> time:). Also I switched to native compile branch on my main system and want to do the same on Windows.
> Will this fix be pushed to native-compile branch too? If so, I think there is no need for instructions.  Thank you
> for your help!

Yes, this change will appear on master soon, and then will be merged
to the native-compile branch.

The telltale sign of the problem is that

  M-: (getenv "LANG") RET

produces a bogus "language" of "ZZZ".  You could try fixing the
problem manually even before the change gets to you with

  M-x set-locale-environment RET RUS RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Fri, 09 Apr 2021 17:00:02 GMT) Full text and rfc822 format available.

Message #28 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39286 <at> debbugs.gnu.org, jumper 047 <jumper047 <at> gmail.com>
Subject: Re: bug#39286: 27.0.60;
 Wrong font for Cyrillic characters in emacs buffer
Date: Fri, 9 Apr 2021 11:59:40 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: jumper 047 <jumper047 <at> gmail.com>
>> Date: Sun, 7 Feb 2021 20:38:00 +0300
>>
>> It's amazing news! Not sure when I'll have access to that system, maybe a new version will be released that
>> time:). Also I switched to native compile branch on my main system and want to do the same on Windows.
>> Will this fix be pushed to native-compile branch too? If so, I think there is no need for instructions.  Thank you
>> for your help!
>
> Yes, this change will appear on master soon, and then will be merged
> to the native-compile branch.
>
> The telltale sign of the problem is that
>
>   M-: (getenv "LANG") RET
>
> produces a bogus "language" of "ZZZ".  You could try fixing the
> problem manually even before the change gets to you with
>
>   M-x set-locale-environment RET RUS RET

Did you have time to test this yet?  Thanks in advance.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Thu, 13 May 2021 11:55:01 GMT) Full text and rfc822 format available.

Message #31 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 39286 <at> debbugs.gnu.org,
 jumper 047 <jumper047 <at> gmail.com>
Subject: Re: bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs
 buffer
Date: Thu, 13 May 2021 13:54:29 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Did you have time to test this yet?  Thanks in advance.

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 39286 <at> debbugs.gnu.org and jumper 047 <jumper047 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 13 May 2021 11:55:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39286; Package emacs. (Thu, 13 May 2021 12:58:01 GMT) Full text and rfc822 format available.

Message #36 received at 39286 <at> debbugs.gnu.org (full text, mbox):

From: Dmitrii <jumper047 <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Stefan Kangas <stefan <at> marxist.se>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 39286 <at> debbugs.gnu.org
Subject: Re: bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
Date: Thu, 13 May 2021 15:57:04 +0300
[Message part 1 (text/plain, inline)]
Sorry for delay - there was no changes after Eli's fixes, but luckily I found working solution:
 (set-language-environment "ASCII")
(set-coding-system-priority 'utf-8 'utf-16 'windows-1251)
These strings in config fixed the issue.

On May 13, 2021 2:54:29 PM GMT+03:00, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>Stefan Kangas <stefan <at> marxist.se> writes:
>
>> Did you have time to test this yet?  Thanks in advance.
>
>More information was requested, but no response was given within a
>month, so I'm closing this bug report.  If the problem still exists,
>please respond to this email and we'll reopen the bug report.
>
>-- 
>(domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Jun 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.