From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42099: Emacs -nw Turkish Layout Problem Date: Sun, 28 Jun 2020 20:01:16 +0300 Message-ID: <835zbb2kgz.fsf@gnu.org> References: <83h7uv2ryp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="46261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42099@debbugs.gnu.org To: Yigit Emre Sahinoglu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 28 19:02:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpah1-000Bv9-Fl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 19:02:11 +0200 Original-Received: from localhost ([::1]:50302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpah0-00021s-0z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 13:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpags-00021j-9Z for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 13:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpagr-0004Cm-W1 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 13:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpagr-0008GV-Th for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 13:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 17:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42099 X-GNU-PR-Package: emacs Original-Received: via spool by 42099-submit@debbugs.gnu.org id=B42099.159336369531717 (code B ref 42099); Sun, 28 Jun 2020 17:02:01 +0000 Original-Received: (at 42099) by debbugs.gnu.org; 28 Jun 2020 17:01:35 +0000 Original-Received: from localhost ([127.0.0.1]:46850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpagR-0008FU-8X for submit@debbugs.gnu.org; Sun, 28 Jun 2020 13:01:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpagQ-0008FI-85 for 42099@debbugs.gnu.org; Sun, 28 Jun 2020 13:01:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45060) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpagK-00047E-QL; Sun, 28 Jun 2020 13:01:28 -0400 Original-Received: from [176.228.60.248] (port=3881 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jpagI-0003WX-W5; Sun, 28 Jun 2020 13:01:28 -0400 In-Reply-To: (message from Yigit Emre Sahinoglu on Sun, 28 Jun 2020 18:21:17 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182471 Archived-At: [Please keep the bug address on the CC line.] > From: Yigit Emre Sahinoglu > 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.