unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
@ 2020-01-26  8:06 jumper 047
  2020-01-26 17:10 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: jumper 047 @ 2020-01-26  8:06 UTC (permalink / raw)
  To: 39286

[-- Attachment #1: Type: text/plain, Size: 3164 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 3431 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2020-01-26  8:06 bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer jumper 047
@ 2020-01-26 17:10 ` Eli Zaretskii
  2020-01-31  6:42   ` Дмитрий
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2020-01-26 17:10 UTC (permalink / raw)
  To: jumper 047; +Cc: 39286

> From: jumper 047 <jumper047@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.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2020-01-26 17:10 ` Eli Zaretskii
@ 2020-01-31  6:42   ` Дмитрий
  2020-01-31  8:50     ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Дмитрий @ 2020-01-31  6:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39286

[-- Attachment #1: Type: text/plain, Size: 4947 bytes --]

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@gnu.org> wrote:
>> From: jumper 047 <jumper047@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.

[-- Attachment #2: Type: text/html, Size: 6072 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2020-01-31  6:42   ` Дмитрий
@ 2020-01-31  8:50     ` Eli Zaretskii
  2020-01-31  9:13       ` Дмитрий
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2020-01-31  8:50 UTC (permalink / raw)
  To: Дмитрий; +Cc: 39286

> Date: Fri, 31 Jan 2020 09:42:21 +0300
> CC: 39286@debbugs.gnu.org
> From: Дмитрий <jumper047@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2020-01-31  8:50     ` Eli Zaretskii
@ 2020-01-31  9:13       ` Дмитрий
  2021-02-07 16:09         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Дмитрий @ 2020-01-31  9:13 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39286

[-- Attachment #1: Type: text/plain, Size: 5853 bytes --]

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@gnu.org> wrote:
>> Date: Fri, 31 Jan 2020 09:42:21 +0300
>> CC: 39286@debbugs.gnu.org
>> From: Дмитрий <jumper047@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.

[-- Attachment #2: Type: text/html, Size: 7326 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2020-01-31  9:13       ` Дмитрий
@ 2021-02-07 16:09         ` Eli Zaretskii
       [not found]           ` <CAL0qKoTXrQ-FwmWzEnPeVg88P3YEmTqhJFzL9sNc=66LiS+9rg@mail.gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-02-07 16:09 UTC (permalink / raw)
  To: Дмитрий; +Cc: 39286

> Date: Fri, 31 Jan 2020 12:13:18 +0300
> From: Дмитрий <jumper047@gmail.com>
> Cc: 39286@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
       [not found]           ` <CAL0qKoTXrQ-FwmWzEnPeVg88P3YEmTqhJFzL9sNc=66LiS+9rg@mail.gmail.com>
@ 2021-02-07 18:00             ` Eli Zaretskii
  2021-04-09 16:59               ` Stefan Kangas
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-02-07 18:00 UTC (permalink / raw)
  To: jumper 047; +Cc: 39286

> From: jumper 047 <jumper047@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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2021-02-07 18:00             ` Eli Zaretskii
@ 2021-04-09 16:59               ` Stefan Kangas
  2021-05-13 11:54                 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Kangas @ 2021-04-09 16:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39286, jumper 047

Eli Zaretskii <eliz@gnu.org> writes:

>> From: jumper 047 <jumper047@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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2021-04-09 16:59               ` Stefan Kangas
@ 2021-05-13 11:54                 ` Lars Ingebrigtsen
  2021-05-13 12:57                   ` Dmitrii
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-13 11:54 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 39286, jumper 047

Stefan Kangas <stefan@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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer
  2021-05-13 11:54                 ` Lars Ingebrigtsen
@ 2021-05-13 12:57                   ` Dmitrii
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitrii @ 2021-05-13 12:57 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Stefan Kangas; +Cc: 39286

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

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@gnus.org> wrote:
>Stefan Kangas <stefan@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.

[-- Attachment #2: Type: text/html, Size: 1348 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-05-13 12:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26  8:06 bug#39286: 27.0.60; Wrong font for Cyrillic characters in emacs buffer jumper 047
2020-01-26 17:10 ` Eli Zaretskii
2020-01-31  6:42   ` Дмитрий
2020-01-31  8:50     ` Eli Zaretskii
2020-01-31  9:13       ` Дмитрий
2021-02-07 16:09         ` Eli Zaretskii
     [not found]           ` <CAL0qKoTXrQ-FwmWzEnPeVg88P3YEmTqhJFzL9sNc=66LiS+9rg@mail.gmail.com>
2021-02-07 18:00             ` Eli Zaretskii
2021-04-09 16:59               ` Stefan Kangas
2021-05-13 11:54                 ` Lars Ingebrigtsen
2021-05-13 12:57                   ` Dmitrii

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).