GNU bug report logs - #42099
Emacs -nw Turkish Layout Problem

Previous Next

Package: emacs;

Reported by: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>

Date: Sun, 28 Jun 2020 01:32:01 UTC

Severity: normal

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 42099 in the body.
You can then email your comments to 42099 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#42099; Package emacs. (Sun, 28 Jun 2020 01:32:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yigit Emre Sahinoglu <yigitemres <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Jun 2020 01:32:01 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 04:23:59 +0300
[Message part 1 (text/plain, inline)]
When using emacs from terminal with -nw option (with or without -Q),
some characters are not working properly. It's somehow keyboard layout
half messed up. Characters like ö,ç,ü are working but ş (U+015F), Ş (U+15E),
ğ (U+011E) and Ğ (U+011F) are not working. ş is return _ and Ş is return ^.
i is working but instead of İ, 0 is returned. Changing the coding system
cp1254
(Windows Turkish) doesn't have any effect. It's discovered by
https://www.reddit.com/r/emacs/comments/hgvcth/cant_type_the_characters_%C5%9F_or_%C4%9F_in_emacs_nw_on/


In GNU Emacs 27.0.91 (build 1, x86_64-w64-mingw32)
 of 2020-04-20 built on CIRROCUMULUS
Repository revision: c36c5a3dedbb2e0349be1b6c3b7567ea7b594f1c
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.330)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static''

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: ENU
  locale-coding-system: cp1252

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
  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
term/w32console 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 43500 9407)
 (symbols 48 6001 1)
 (strings 32 15207 1533)
 (string-bytes 1 504344)
 (vectors 16 6689)
 (vector-slots 8 78176 6458)
 (floats 8 18 309)
 (intervals 56 191 0)
 (buffers 1000 11))


Yiğit Emre Şahinoğlu
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 14:20:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 17:19:26 +0300
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Sun, 28 Jun 2020 04:23:59 +0300
> 
> When using emacs from terminal with -nw option (with or without -Q),
> some characters are not working properly. It's somehow keyboard layout
> half messed up. Characters like ö,ç,ü are working but ş (U+015F), Ş (U+15E),
> ğ (U+011E) and Ğ (U+011F) are not working. ş is return _ and Ş is return ^. i is working but instead of İ, 0 is
> returned. Changing the coding system cp1254
> (Windows Turkish) doesn't have any effect. It's discovered by 
> https://www.reddit.com/r/emacs/comments/hgvcth/cant_type_the_characters_%C5%9F_or_%C4%9F_in_emacs_nw_on/

What is the console input and output codepages on that system?  If you
are not sure, use the functions w32-get-console-codepage and
w32-get-console-output-codepage to find out.

Also, what is the font that the Command Prompt window is using on that
system, and does it support those characters? what happens if you
configure the Command Prompt window to use the Lucida Console font,
for example?

And finally, please go to the place where you insert one of the
problematic characters and type "C-x =" -- does Emacs show in the echo
area the correct codepoint?

From the Reddit discussion, I understand that you are using some
non-default console program to display text-mode frames.  If so,
please make sure to try all of the above from the default Command
Prompt window that runs the default Windows shell cmd.exe.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 17:02:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 20:01:16 +0300
[Please keep the bug address on the CC line.]

> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Sun, 28 Jun 2020 18:21:17 +0300
> 
> w32-get-console-codepage,  w32-get-console-output-codepage  = 437 (#o665, #x1b5) (for GUI and "-Q
> -nw")

This is part of the problem, I think: codepage 437 doesn't support
Turkish characters.

> Command prompt fonts and encodings are fine for the system part. As I'm aware, encodings are fine
> (because GUI don't have this problem and the problem still exists with -Q) for the Emacs, too.

The GUI display is completely different from the -nw display in this
aspect, so the fact that GUI frames display correctly doesn't mean
anything regarding the text-mode display issues.

> I insert all Turkish char to the text file. After opening that file with "emacs -Q -nw" get this:
> 
> Original:                    ö Ö ç Ç      ş          Ş     i       İ         ğ         Ğ       ü Ü
> Emacs Response:     ö Ö ç Ç  \u015F \u015E  i  \u0130 \u011F \u011E   ü Ü 

This is clearly a display problem: Emacs uses the \u Unicode escapes
because it knows that codepage 437 cannot display those characters.

This is not the problem reported by the OP in Reddit.  There, the
problem seems to be one of _typing_ Turkish characters: he types a
character, but instead of inserting it Emacs invokes the 'undo'
command.  I think that problem is due to some strange interaction
between the non-default console emulator he uses and the Turkish
letters.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 18:27:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 21:25:56 +0300
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Sun, 28 Jun 2020 20:54:45 +0300
> 
> For some reason I cannot edit cc from gmail (Either gui changed or i
> cannot see it. Sorry for the trouble.).

Use "Reply All".

> I love helping people on reddit If I can. When I try to solve his
> problem, I face the same problem. I try with every terminal available
> on Windows (with native or with emulator) but the problem still
> exists. He uses Win 7, I use Win 10. He uses emacs 25.2.1 and  25.3.1,
> I use 27.0.91. He uses cmder (emulator) and with cmd.exe, I use
> Powershell 7,6 , cmd.exe with and without Windows Terminal (emulator).

Are you saying that you see the same problem as the OP?  Because the
problem you described earlier was different.

If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
happens?  And what does "C-h l" report after that?

Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
character on display, or do you see something else?

> I don't know how emacs works. But if emacs reads some kind of keyboard
> layout table like QMK Firmware, this table is somehow messed up while
> using "-nw" (or `X resources` on Windows somehow send true signals to
> emacs and keyboard layout is fine with GUI). If you can tell me where
> the keyboard layout files (if emacs reads from files) I can look at
> it.

There are now keyboard layout files on Windows.  Does it help to
evaluate this:

  M-: (w32-set-console-codepage 857) RET

If that doesn't help, try this instead:

  M-: (w32-set-console-codepage 1254) RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 19:11:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 22:09:42 +0300
> Cc: 42099 <at> debbugs.gnu.org
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Sun, 28 Jun 2020 21:39:34 +0300
> 
> > If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> > happens?
> "ş" turns into "_".
> 
> 
> > And what does "C-h l" report after that?
> _               ;; self-insert-command
> C-h k        ;; view-lossage
> 
> 
> > Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> > character on display, or do you see something else?
> \u015F

So there are two problems: both keyboard input and display of Turkish
characters are broken.  Is this still on a system where
w32-get-console-codepage returns 437?

Does anything change regarding typing Turkish characters if you set
w32-use-fallback-wm-chars-method to a non-nil value?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 22:43:01 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 21:39:34 +0300
I'm download Thunderbird for just for Cc problem. ^_^

> Are you saying that you see the same problem as the OP?  Because the
> problem you described earlier was different.
Yes, I have the same problem. I described the problem which I faced but 
he is finder of the bug.(I love referencing the sources...). Sorry for 
the misunderstanding.

I done all my testing which I sent to you with previous messages do 
under "emacs -Q -nw" conditions but I'm gonna answer again one by one.

> If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> happens?
"ş" turns into "_".


> And what does "C-h l" report after that?
_               ;; self-insert-command
C-h k        ;; view-lossage


> Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> character on display, or do you see something else?
\u015F


> There are now keyboard layout files on Windows.  Does it help to
> evaluate this:
>
>    M-: (w32-set-console-codepage 857) RET
>
> If that doesn't help, try this instead:
>
>    M-: (w32-set-console-codepage 1254) RET
Still same. No change.


On 2020-06-28 21:25, Eli Zaretskii wrote:
>> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
>> Date: Sun, 28 Jun 2020 20:54:45 +0300
>>
>> For some reason I cannot edit cc from gmail (Either gui changed or i
>> cannot see it. Sorry for the trouble.).
> Use "Reply All".
>
>> I love helping people on reddit If I can. When I try to solve his
>> problem, I face the same problem. I try with every terminal available
>> on Windows (with native or with emulator) but the problem still
>> exists. He uses Win 7, I use Win 10. He uses emacs 25.2.1 and  25.3.1,
>> I use 27.0.91. He uses cmder (emulator) and with cmd.exe, I use
>> Powershell 7,6 , cmd.exe with and without Windows Terminal (emulator).
> Are you saying that you see the same problem as the OP?  Because the
> problem you described earlier was different.
>
> If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> happens?  And what does "C-h l" report after that?
>
> Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> character on display, or do you see something else?
>
>> I don't know how emacs works. But if emacs reads some kind of keyboard
>> layout table like QMK Firmware, this table is somehow messed up while
>> using "-nw" (or `X resources` on Windows somehow send true signals to
>> emacs and keyboard layout is fine with GUI). If you can tell me where
>> the keyboard layout files (if emacs reads from files) I can look at
>> it.
> There are now keyboard layout files on Windows.  Does it help to
> evaluate this:
>
>    M-: (w32-set-console-codepage 857) RET
>
> If that doesn't help, try this instead:
>
>    M-: (w32-set-console-codepage 1254) RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 22:43:02 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 21:43:40 +0300
And Thunderbird causes formatting issues... Sorry for it. I'm disable
one of my browser extensions and I can see the "reply all" button on
Gmail. Never happen again. =(

Best regards,
Yiğit Emre Şahinoğlu

On Sun, Jun 28, 2020 at 9:39 PM Yigit Emre Sahinoglu
<yigitemres <at> gmail.com> wrote:
>
> I'm download Thunderbird for just for Cc problem. ^_^
>
> > Are you saying that you see the same problem as the OP?  Because the
> > problem you described earlier was different.
> Yes, I have the same problem. I described the problem which I faced but
> he is finder of the bug.(I love referencing the sources...). Sorry for
> the misunderstanding.
>
> I done all my testing which I sent to you with previous messages do
> under "emacs -Q -nw" conditions but I'm gonna answer again one by one.
>
> > If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> > happens?
> "ş" turns into "_".
>
>
> > And what does "C-h l" report after that?
> _               ;; self-insert-command
> C-h k        ;; view-lossage
>
>
> > Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> > character on display, or do you see something else?
> \u015F
>
>
> > There are now keyboard layout files on Windows.  Does it help to
> > evaluate this:
> >
> >    M-: (w32-set-console-codepage 857) RET
> >
> > If that doesn't help, try this instead:
> >
> >    M-: (w32-set-console-codepage 1254) RET
> Still same. No change.
>
>
> On 2020-06-28 21:25, Eli Zaretskii wrote:
> >> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> >> Date: Sun, 28 Jun 2020 20:54:45 +0300
> >>
> >> For some reason I cannot edit cc from gmail (Either gui changed or i
> >> cannot see it. Sorry for the trouble.).
> > Use "Reply All".
> >
> >> I love helping people on reddit If I can. When I try to solve his
> >> problem, I face the same problem. I try with every terminal available
> >> on Windows (with native or with emulator) but the problem still
> >> exists. He uses Win 7, I use Win 10. He uses emacs 25.2.1 and  25.3.1,
> >> I use 27.0.91. He uses cmder (emulator) and with cmd.exe, I use
> >> Powershell 7,6 , cmd.exe with and without Windows Terminal (emulator).
> > Are you saying that you see the same problem as the OP?  Because the
> > problem you described earlier was different.
> >
> > If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> > happens?  And what does "C-h l" report after that?
> >
> > Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> > character on display, or do you see something else?
> >
> >> I don't know how emacs works. But if emacs reads some kind of keyboard
> >> layout table like QMK Firmware, this table is somehow messed up while
> >> using "-nw" (or `X resources` on Windows somehow send true signals to
> >> emacs and keyboard layout is fine with GUI). If you can tell me where
> >> the keyboard layout files (if emacs reads from files) I can look at
> >> it.
> > There are now keyboard layout files on Windows.  Does it help to
> > evaluate this:
> >
> >    M-: (w32-set-console-codepage 857) RET
> >
> > If that doesn't help, try this instead:
> >
> >    M-: (w32-set-console-codepage 1254) RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sun, 28 Jun 2020 22:43:02 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sun, 28 Jun 2020 22:46:39 +0300
w32-get-console-codepage = 437 (#0665, #x1b5). Problem still exists as
I described (ö, ç, ü works but ş, İ (types 0), ğ are broken.)

"M-: (setq w32-use-fallback-wm-chars-method t)" does nothing. Problem
still exists (I check the value if it's correctly set with
describe-value).

On Sun, Jun 28, 2020 at 10:09 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > Cc: 42099 <at> debbugs.gnu.org
> > From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> > Date: Sun, 28 Jun 2020 21:39:34 +0300
> >
> > > If you start "emacs -Q -nw" in a cmd.exe window, then type ş, what
> > > happens?
> > "ş" turns into "_".
> >
> >
> > > And what does "C-h l" report after that?
> > _               ;; self-insert-command
> > C-h k        ;; view-lossage
> >
> >
> > > Also, what happens if you type "C-x 8 RET 15f RET", do you see the ş
> > > character on display, or do you see something else?
> > \u015F
>
> So there are two problems: both keyboard input and display of Turkish
> characters are broken.  Is this still on a system where
> w32-get-console-codepage returns 437?
>
> Does anything change regarding typing Turkish characters if you set
> w32-use-fallback-wm-chars-method to a non-nil value?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Mon, 29 Jun 2020 14:08:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Mon, 29 Jun 2020 17:07:43 +0300
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Sun, 28 Jun 2020 22:46:39 +0300
> Cc: 42099 <at> debbugs.gnu.org
> 
> w32-get-console-codepage = 437 (#0665, #x1b5). Problem still exists as
> I described (ö, ç, ü works but ş, İ (types 0), ğ are broken.)

OK.  So I think the problem might be in the setup of the Windows
system.  If you type "chcp RET" in the Command Prompt window, does it
also show codepage 437?  And if you type the problematic characters
into the Command Prompt window (outside of Emacs) at the cmd.exe
prompt, do you also see those characters displayed incorrectly?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Mon, 29 Jun 2020 14:43:02 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Mon, 29 Jun 2020 17:42:13 +0300
[Message part 1 (text/plain, inline)]
chcp returns "Active code page: 437"

All chars displayed correctly on cmd.exe. It's something about Emacs 
Windows (maybe mingw do something finicky), I'm sure of that. WSL Emacs 
works perfectly fine with "emacs -Q -nw" even from cmd.exe. You can look 
at the attachments.


On 2020-06-29 17:07, Eli Zaretskii wrote:
>> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
>> Date: Sun, 28 Jun 2020 22:46:39 +0300
>> Cc: 42099 <at> debbugs.gnu.org
>>
>> w32-get-console-codepage = 437 (#0665, #x1b5). Problem still exists as
>> I described (ö, ç, ü works but ş, İ (types 0), ğ are broken.)
> OK.  So I think the problem might be in the setup of the Windows
> system.  If you type "chcp RET" in the Command Prompt window, does it
> also show codepage 437?  And if you type the problematic characters
> into the Command Prompt window (outside of Emacs) at the cmd.exe
> prompt, do you also see those characters displayed incorrectly?
[cmd_XAWZQ3ayEB.png (image/png, attachment)]
[cmd_3LO9oNHOnO.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Mon, 29 Jun 2020 15:52:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Mon, 29 Jun 2020 18:51:28 +0300
> Cc: 42099 <at> debbugs.gnu.org
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Mon, 29 Jun 2020 17:42:13 +0300
> 
> chcp returns "Active code page: 437"
> 
> All chars displayed correctly on cmd.exe. It's something about Emacs 
> Windows (maybe mingw do something finicky), I'm sure of that.

As long as the codepage reported to Emacs is 437, you will not be able
to see nor input Turkish characters.  the question is why is this
codepage being returned, when the system evidently uses a different
encoding...

This is Windows 10, right?  Do you per chance have the UTF-8 support
feature enabled?

You could also try this, once inside Emacs:

  C-x RET t cp857 RET
  C-x RET k cp857 RET

Does that help?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Mon, 29 Jun 2020 17:07:01 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Mon, 29 Jun 2020 20:06:35 +0300
[Message part 1 (text/plain, inline)]
>
>   C-x RET t cp857 RET
>
  C-x RET k cp857 RET


Not helping. The problem still exists.

This is Windows 10, right?  Do you per chance have the UTF-8 support
> feature enabled?
>

I use Windows 10. I cannot find UTF-8 support feature (look from `Windows
features on or off`  from Control Panel) but I'm pretty sure that UTF-8
support feature exists. Only problematic software I'm aware of is `emacs
-nw`.


Yiğit Emre Şahinoğlu


On Mon, Jun 29, 2020 at 6:51 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > Cc: 42099 <at> debbugs.gnu.org
> > From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> > Date: Mon, 29 Jun 2020 17:42:13 +0300
> >
> > chcp returns "Active code page: 437"
> >
> > All chars displayed correctly on cmd.exe. It's something about Emacs
> > Windows (maybe mingw do something finicky), I'm sure of that.
>
> As long as the codepage reported to Emacs is 437, you will not be able
> to see nor input Turkish characters.  the question is why is this
> codepage being returned, when the system evidently uses a different
> encoding...
>
> This is Windows 10, right?  Do you per chance have the UTF-8 support
> feature enabled?
>
> You could also try this, once inside Emacs:
>
>   C-x RET t cp857 RET
>   C-x RET k cp857 RET
>
> Does that help?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Mon, 29 Jun 2020 17:11:02 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Mon, 29 Jun 2020 20:09:57 +0300
[Message part 1 (text/plain, inline)]
I forgot to say this, when I enter `chcp 857` and then enter emacs, the
problem still exists even though the system returns chcp 857.


On Mon, Jun 29, 2020 at 8:06 PM Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
wrote:

>   C-x RET t cp857 RET
>>
>   C-x RET k cp857 RET
>
>
> Not helping. The problem still exists.
>
> This is Windows 10, right?  Do you per chance have the UTF-8 support
>> feature enabled?
>>
>
> I use Windows 10. I cannot find UTF-8 support feature (look from `Windows
> features on or off`  from Control Panel) but I'm pretty sure that UTF-8
> support feature exists. Only problematic software I'm aware of is `emacs
> -nw`.
>
>
> Yiğit Emre Şahinoğlu
>
>
> On Mon, Jun 29, 2020 at 6:51 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> > Cc: 42099 <at> debbugs.gnu.org
>> > From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
>> > Date: Mon, 29 Jun 2020 17:42:13 +0300
>> >
>> > chcp returns "Active code page: 437"
>> >
>> > All chars displayed correctly on cmd.exe. It's something about Emacs
>> > Windows (maybe mingw do something finicky), I'm sure of that.
>>
>> As long as the codepage reported to Emacs is 437, you will not be able
>> to see nor input Turkish characters.  the question is why is this
>> codepage being returned, when the system evidently uses a different
>> encoding...
>>
>> This is Windows 10, right?  Do you per chance have the UTF-8 support
>> feature enabled?
>>
>> You could also try this, once inside Emacs:
>>
>>   C-x RET t cp857 RET
>>   C-x RET k cp857 RET
>>
>> Does that help?
>>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Tue, 30 Jun 2020 16:26:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Tue, 30 Jun 2020 19:25:11 +0300
> From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> Date: Mon, 29 Jun 2020 20:09:57 +0300
> Cc: 42099 <at> debbugs.gnu.org
> 
> I forgot to say this, when I enter `chcp 857` and then enter emacs, the problem still exists even though the
> system returns chcp 857.

Thanks.

I think the next step is for someone to run Emacs under GDB and see
what kind of character codes Windows feeds us on the Turkish Windows
systems.  The relevant function is key_event in w32inevt.c.  I guess
there's some basic misunderstanding of what happens there on these
Windows systems.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Tue, 30 Jun 2020 16:37:01 GMT) Full text and rfc822 format available.

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

From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Tue, 30 Jun 2020 19:35:50 +0300
[Message part 1 (text/plain, inline)]
"Ah, shit here we go again..." CJ

I think that I'm very bad while using debuggers. I'm gonna try it in order
to send any info I can provide.

On Tue, Jun 30, 2020 at 7:25 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
> > Date: Mon, 29 Jun 2020 20:09:57 +0300
> > Cc: 42099 <at> debbugs.gnu.org
> >
> > I forgot to say this, when I enter `chcp 857` and then enter emacs, the
> problem still exists even though the
> > system returns chcp 857.
>
> Thanks.
>
> I think the next step is for someone to run Emacs under GDB and see
> what kind of character codes Windows feeds us on the Turkish Windows
> systems.  The relevant function is key_event in w32inevt.c.  I guess
> there's some basic misunderstanding of what happens there on these
> Windows systems.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Tue, 22 Mar 2022 15:39:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Tue, 22 Mar 2022 16:38:18 +0100
Yigit Emre Sahinoglu <yigitemres <at> gmail.com> writes:

> "Ah, shit here we go again..." CJ
>
> I think that I'm very bad while using debuggers. I'm gonna try it in order to send any
> info I can provide.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Did you make any further progress here, by any chance?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42099; Package emacs. (Sat, 30 Apr 2022 16:27:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yigit Emre Sahinoglu <yigitemres <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 42099 <at> debbugs.gnu.org
Subject: Re: bug#42099: Emacs -nw Turkish Layout Problem
Date: Sat, 30 Apr 2022 18:26:26 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Did you make any further progress here, by any chance?

More information was requested, but no response was given within a
month, so it seems unlikely that there'll be further progress here, and
I'm closing this bug report.  If progress can be made, 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 42099 <at> debbugs.gnu.org and Yigit Emre Sahinoglu <yigitemres <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Apr 2022 16:27:03 GMT) Full text and rfc822 format available.

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

This bug report was last modified 1 year and 332 days ago.

Previous Next


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