From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Re: On Windows(R) Emacs =?utf-8?B?wqtzaGVsbMK7?= mode doesn't prints an output. Date: Thu, 25 Sep 2014 11:55:49 +0300 Message-ID: <8361gcw02y.fsf@gnu.org> References: <83a95ow3fm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1411635387 1898 80.91.229.3 (25 Sep 2014 08:56:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2014 08:56:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 10:56:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XX4qa-000553-Ab for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 10:56:20 +0200 Original-Received: from localhost ([::1]:38984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX4qZ-0007ig-Vo for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 04:56:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX4qJ-0007ib-DB for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 04:56:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX4qD-0007qj-Cw for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 04:56:03 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX4qD-0007pw-4e for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 04:55:57 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NCG000008LLUA00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:55:50 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCG000RF8T2PR70@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:55:50 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100138 Archived-At: > Date: Thu, 25 Sep 2014 15:25:48 +0700 > From: Yuri Khan > Cc: "help-gnu-emacs@gnu.org" >=20 > On Thu, Sep 25, 2014 at 2:43 PM, Eli Zaretskii wrote= : >=20 > >> I thought that the problem is in encoding, and set =C2=ABshell= =C2=BB's buffer > >> with =C2=ABC-x f=C2=BB to UTF-16, which, as I know, uses M= S, but it didn't > >> fixed the problem. > > > > Console applications on Windows use the current OEM codepage, not > > UTF-16. >=20 > This is correct in general, although *some* Windows console > applications can be persuaded to output in UTF-16. (The only exampl= e I > know of is cmd.exe /U.) cmd.exe is not a "normal" console application. And AFAIK, the /U switch only affects output to files and pipes, not to the console. > Also, there is an unofficial unsupported ugly hack to use =E2=80= =9Cchcp 65001=E2=80=9D > which makes applications think that the current OEM codepage is UTF= -8. > (It is unsupported because that there is some code that assumes at > most two bytes for each character, while UTF-8 may produce up to > four.) First, UTF-8 is still not UTF-16. And second, there's nothing unsupported about codepage 65001, the onl= y problem with switching the console to that codepage is that the fonts available for it in the console cover only a very small portion of th= e BMP, so you don't really get a Unicode-capable console.