From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?Re=3A_Re=3A_Re=3A_Re=3A_On_Windows=28R=29_Emacs_=C2=ABshell=C2=BB_mode_d?= =?UTF-8?Q?oesn=27t_prints_an_output=2E?= Date: Thu, 25 Sep 2014 22:44:51 +0700 Message-ID: References: <83a95ow3fm.fsf@gnu.org> <8361gcw02y.fsf@gnu.org> <83zjdoueui.fsf@gnu.org> <83wq8rvnb2.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 1411659920 22422 80.91.229.3 (25 Sep 2014 15:45:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2014 15:45:20 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 17:45:15 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 1XXBEI-0005c7-Nl for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 17:45:14 +0200 Original-Received: from localhost ([::1]:40792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBEI-0002Pk-CH for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 11:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBE4-0002PR-RN for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:45:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXBE3-0000gu-T8 for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:45:00 -0400 Original-Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:37533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBE1-0000fc-HL; Thu, 25 Sep 2014 11:44:57 -0400 Original-Received: by mail-ie0-f171.google.com with SMTP id rd18so9166821iec.2 for ; Thu, 25 Sep 2014 08:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=T3MrBiZ2DU2bDPoCyOKw1pROPma5AcOWD8sKIZ4l5c8=; b=Noc/wHxJAbU/854m9P3W0m0dWsNSpEqRhZacRhvLyAj5Xn+46TxevQuUYjDJAjrY6s idiVN7mJFKTgjhPgzyI9jJ93+YntjFeA6b7cBe6dqReaBfu2kup26M4R9hnNWq6aoXb8 cbNSGAjQkcpZsKbLnhH5tgiTqaf/S/zjZnklm6vCoxsMhH2L557r4Au2jCA5gSSax1HA N2c7jGdUhYP4Q5ETd/ZIGlYTRWKnV61SjdtpHOs8QR7TVk+DXvvYb0Otr7b7+c0tD4/I UUr9mADVMBU7BDnQurS6gK4JYIc1xrIMvz69vC7goCa24XC/L7btQnBe47DVPdjYWL1/ MgZw== X-Received: by 10.42.208.143 with SMTP id gc15mr3231670icb.91.1411659891727; Thu, 25 Sep 2014 08:44:51 -0700 (PDT) Original-Received: by 10.107.164.194 with HTTP; Thu, 25 Sep 2014 08:44:51 -0700 (PDT) In-Reply-To: <83wq8rvnb2.fsf@gnu.org> X-Google-Sender-Auth: _GfNGOIPdxifESvuNUdV3Hi5BEg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22b 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:100151 Archived-At: On Thu, Sep 25, 2014 at 8:31 PM, Eli Zaretskii wrote: >> > That's true, but you can work around that with wide (a.k.a. "Unicode") >> > APIs, such as WriteConsoleW. Not easy, but its doable; you can find >> > the recipes and code on the Internet. >> >> Sure but in that case chcp doesn=E2=80=99t affect you at all and is ther= efore >> unnecessary. > > I don't think so. Windows will always convert the stuff you write to > the console to the codepage that is in effect on that console, because > cmd.exe is not a Unicode app. So if you want to mix characters from > different scripts, codepage 65001 is still required. No. The console uses Unicode internally, as do =E2=80=A6W functions. If you= r program does too, all is well. However, many programs are written against =E2=80=A6A functions or against = the C runtime library, which also uses =E2=80=A6A functions. In this case, the console converts Unicode user input into the OEM code page expected by the application, and converts the application output from the OEM code page into Unicode. >> Lucida Console is not the only font which is usable in the Windows >> console. See, for example, MS Gothic: >> >> http://www.microsoft.com/typography/fonts/font.aspx?FMID=3D2145 > > I don't see this font in the list of fonts you can select in the > Property sheets of the cmd prompt on Windows XP and on Windows 7. On > XP, I can only select Lucida Console; on Windows 7 I can also select > Consolas (whose coverage is slightly larger, and includes Thai, but > still does not include CJK. http://blogs.msdn.com/b/oldnewthing/archive/2007/05/16/2659903.aspx and the MSDN article linked from there. Before I fully migrated to Linux, I used Andale Mono and later Liberation Mono in the Windows console to great effect (just because I like tall and narrow rather than fat and squarish console fonts, not because of coverage).