GNU bug report logs - #65148
the turkish keyboard layout in the windows's terminal bug

Previous Next

Package: emacs;

Reported by: Ferhat Avcı <ferhat3223 <at> gmail.com>

Date: Tue, 8 Aug 2023 12:29:02 UTC

Severity: normal

To reply to this bug, email your comments to 65148 AT debbugs.gnu.org.

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#65148; Package emacs. (Tue, 08 Aug 2023 12:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ferhat Avcı <ferhat3223 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Aug 2023 12:29:02 GMT) Full text and rfc822 format available.

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

From: Ferhat Avcı <ferhat3223 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: the turkish keyboard layout in the windows's terminal bug
Date: Tue, 8 Aug 2023 15:20:54 +0300
[Message part 1 (text/plain, inline)]
In the windows's terminal(app was opened with -nw command), pressing ğ char
not adding char ğ. it does undo command.Please sir fixing this issue.
Emacs version is 29.1. I am using currently Windows 10.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 12:44:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 15:43:54 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 15:20:54 +0300
> 
> In the windows's terminal(app was opened with -nw command), pressing ğ char not adding char ğ. it
> does undo command.Please sir fixing this issue.
> Emacs version is 29.1. I am using currently Windows 10.

Please type

  M-: (terminal-coding-system) RET

and post here what Emacs says as result.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 12:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 13:53:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 16:52:54 +0300
[Please use Reply All to reply, so that the bug address is on the CC list.]

> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 16:36:05 +0300
> 
> cp437

OK.  Please try

   M-: (w32-set-console-codepage 857) RET
   C-x RET k cp857 RET

If that doesn't help, try

   M-: (w32-set-console-codepage 1254) RET
   C-x RET k cp1254 RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 15:27:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 18:26:45 +0300
[Please use Reply All in your responses.]

> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 16:57:10 +0300
> 
> it doesn't work.

What if you type

  chcp 857

or

  chcp 1254

in the cmd.exe window before invoking "emacs -nw"?  Does that help?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 17:35:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 20:34:34 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 20:26:14 +0300
> Cc: 65148 <at> debbugs.gnu.org
> 
> no doesn't work. I am pressing my keyboard turkish character "ı". it inserts 1,which is a number.

If you type "chcp" into the cmd.exe window, what does Windows say?

If you type "echo ı > file", and then open the file in Emacs, what do
you see in the file, and what is the value of
buffer-file-coding-system of that file?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 18:16:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 21:15:15 +0300
[Please don't forget to CC the bug address on your replies.]

> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 20:57:12 +0300
> 
> in bottom left corner DD9

And the character you typed is displayed correctly, as "ı"?

What happens if you start "emacs -nw" and then type

  C-x RET k windows-1254 RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Tue, 08 Aug 2023 19:07:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 08 Aug 2023 22:06:24 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Tue, 8 Aug 2023 21:52:05 +0300
> 
> No it doesn't work. But thank you.

Can you figure out which bytes the keyboard sends when you type those
characters, "ı" and "ğ"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 02:05:07 GMT) Full text and rfc822 format available.

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

From: Ferhat Avcı <ferhat3223 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Tue, 8 Aug 2023 20:26:14 +0300
[Message part 1 (text/plain, inline)]
no doesn't work. I am pressing my keyboard turkish character "ı". it
inserts 1,which is a number.

Eli Zaretskii <eliz <at> gnu.org>, 8 Ağu 2023 Sal, 18:26 tarihinde şunu yazdı:

> [Please use Reply All in your responses.]
>
> > From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> > Date: Tue, 8 Aug 2023 16:57:10 +0300
> >
> > it doesn't work.
>
> What if you type
>
>   chcp 857
>
> or
>
>   chcp 1254
>
> in the cmd.exe window before invoking "emacs -nw"?  Does that help?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 12:21:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 15:21:09 +0300
[You are once again replying only to me.  Please CC the bug address.]

> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 12:17:30 +0300
> 
> How can i find out the byte of chars ?

If you cave a port of the 'cat' program, then an easy way is this:

  cat > some-file

Then type ığ and press RET, then Ctrl-Z.  The file "some-file" will
have the bytes the keyboard sent.  Then you can either post that file
as a binary attachment, or use Emacs to show the bytes, e.g., with
"M-x hexl-find-file RET".

'cat' is part of GNU Coreutils, so if you don't have it, perhaps find
some port and install it?

Also, where did you get this version of Emacs?  If you downloaded a
pre-built binary, can you tell from which site?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 12:24:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 15:23:46 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 12:30:03 +0300
> 
> I executed "describe-key-briefly" to show which commands calling in emacs.Then I pressed the
> turkish character on the keyboard, which is ğ. It prints this output.
> --------------------------------------------------------------------
> C-_ runs the command undo (found in global-map), which is an
> interactive native-compiled Lisp function in ‘simple.el’.

C-_ has the character code of 0x1F, which is the lower byte of ğ,
whose codepoint is 0x11F.  So for some reason Emacs doesn't see the
upper byte, not sure why.

How are your regional and language preferences set on that system?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 13:47:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 16:46:34 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 16:35:33 +0300
> 
> Regional: Turkish
> Keyboard: Turkish Q
> Language: Turkish

Don't you have a system codepage somewhere there?  If so, what is it?

P.S. And you again replied only to me.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 14:06:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: ferhat3223 <at> gmail.com
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 17:05:32 +0300
> Cc: 65148 <at> debbugs.gnu.org
> Date: Wed, 09 Aug 2023 16:46:34 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> > Date: Wed, 9 Aug 2023 16:35:33 +0300
> > 
> > Regional: Turkish
> > Keyboard: Turkish Q
> > Language: Turkish
> 
> Don't you have a system codepage somewhere there?  If so, what is it?

Also, what does the following display in Emacs:

  M-: current-language-environment RET




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 14:42:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 17:42:02 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 17:35:22 +0300
> 
> I pressed C-h v ,then wrote "current-language-environment."
> 
> -------------------------
> current-language-environment is a variable defined in ‘mule-cmds.el’.
> 
> Its value is "UTF-8"
> Original value was "English"

Why UTF-8?  That's not a good idea on Windows.  Did you customize your
Emacs to set this language-environment?  If so, do you see the problem
with the keyboard input of ğ and ı in "emacs -Q -nw"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 16:47:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 19:46:31 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 19:37:04 +0300
> 
> I set the Turkish,but nothing has changed.Thank you.

Does the problem still exist if you start Emacs as "emacs -Q -nw"?  Do
you still get ğ to run Undo in that case?  Or does something change?
If something does change, please tell what changes in "emacs -Q -nw",
it's important.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 18:02:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 21:02:09 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 19:55:45 +0300
> 
> It's same. Still ğ doing undo.

And what does "C-h v current-language-environment RET" say in
"emacs -Q -nw"?  Also, what does "C-h v current-locale-environment RET"
say in "emacs -Q -nw"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65148; Package emacs. (Wed, 09 Aug 2023 18:19:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ferhat Avcı <ferhat3223 <at> gmail.com>
Cc: 65148 <at> debbugs.gnu.org
Subject: Re: bug#65148: the turkish keyboard layout in the windows's terminal
 bug
Date: Wed, 09 Aug 2023 21:19:16 +0300
> From: Ferhat Avcı <ferhat3223 <at> gmail.com>
> Date: Wed, 9 Aug 2023 21:15:05 +0300
> 
> I got it done. In config file added i ;
> 
> (if (display-graphic-p) nil
> (global-set-key (kbd "C-_") "ğ")
> (global-set-key (kbd "C-^") "Ğ")
> (global-set-key (kbd "_") "ş")
> (global-set-key (kbd "^") "Ş")
>   )

That's fine for you personally, but it doesn't really solve the
problem.




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

Previous Next


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