Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #44940
| From | "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++, comp.lang.c |
| Subject | Re: "Unicode" |
| Date | 2016-09-08 02:16 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <nqqam8$906$1@dont-email.me> (permalink) |
| References | (5 earlier) <ap-dnQfmBryPG1HKnZ2dnUU78c_NnZ2d@brightview.co.uk> <V-ednY8NC_o-DVHKnZ2dnUU78QHNnZ2d@giganews.com> <wPOdneAYmKDDS1DKnZ2dnUU78f_NnZ2d@brightview.co.uk> <y-qdnS41zcF8QVDKnZ2dnUU78bnNnZ2d@giganews.com> <I9idnSszcJ7K603KnZ2dnUU78afNnZ2d@brightview.co.uk> |
Cross-posted to 2 groups.
On 07.09.2016 22:19, Vir Campestris wrote: <> > This is weird. You can call chcp 65001 on a command prompt to set it to > UTF-8, and I'm absolutely certain I've done it from an app in the past. > And yet I can't find the documentation for it anywhere. I wonder if it's > something that used to work, but doesn't any more? The Windows API level has never supported UTF-8 in consoles. The behavior has been as if errors are sticky. Output could work till the first non-ASCII character, but input wouldn't work at all (down at the API level). In Windows versions before Windows 8, using codepage 65000 would get you funny “out of memory” and other errors, from e.g. "more" command: [example] [c:\my\forums\clc++] > chcp 65000 Active code page: 65000 [c:\my\forums\clc++] > more Not enough memory. [c:\my\forums\clc++] > ver Microsoft Windows [Version 6.1.7601] [/example] I'm not sure exactly when that was fixed, but as I recall it's not that same idiotic error message in Windows 10; maybe no error. Windows 10 got a lot of improvements in the console subsystem, including ordinary shortkeys for copy/paste, unwrapping of wrapped output lines, and once again support for ANSI escape sequences. However, the escape sequence support isn't quite quite yet, and it doesn't work with Windows Script Host, apparently because WSH uses direct Unicode console i/o while (apparently) the escape sequences only work for byte streams -- which is sort of ironic, that the now almost deprecated WSH console i/o is not poor enough to get the benefits… Cheers!, - Alf
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
"Unicode" Lynn McGuire <lynnmcguire5@gmail.com> - 2016-08-29 12:06 -0500
Re: "Unicode" Daniel <danielaparker@gmail.com> - 2016-08-29 11:52 -0700
Re: "Unicode" Lynn McGuire <lynnmcguire5@gmail.com> - 2016-08-30 12:24 -0500
Re: "Unicode" legalize+jeeves@mail.xmission.com (Richard) - 2016-08-30 18:50 +0000
Re: "Unicode" Lynn McGuire <lynnmcguire5@gmail.com> - 2016-08-30 14:11 -0500
Re: "Unicode" legalize+jeeves@mail.xmission.com (Richard) - 2016-08-30 19:44 +0000
Re: "Unicode" Vir Campestris <vir.campestris@invalid.invalid> - 2016-08-30 21:29 +0100
Re: "Unicode" legalize+jeeves@mail.xmission.com (Richard) - 2016-08-31 20:31 +0000
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-01 01:50 +0200
Re: "Unicode" Daniel <danielaparker@gmail.com> - 2016-08-31 18:47 -0700
Re: "Unicode" "Osmium" <r124c4u102@comcast.net> - 2016-09-01 06:01 -0500
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-31 23:06 -0400
Re: "Unicode" Ian Collins <ian-news@hotmail.com> - 2016-09-01 15:21 +1200
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-01 15:07 -0400
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-01 08:02 +0200
Re: "Unicode" legalize+jeeves@mail.xmission.com (Richard) - 2016-09-01 18:46 +0000
Re: "Unicode" David Brown <david.brown@hesbynett.no> - 2016-09-01 10:09 +0200
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-01 17:58 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-01 15:08 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-01 21:20 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-01 20:52 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-02 14:44 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-02 10:10 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-02 16:35 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-02 12:26 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-02 17:02 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-02 12:33 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-02 17:53 +0100
Re: "Unicode" Gareth Owen <gwowen@gmail.com> - 2016-09-02 19:20 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-02 16:36 -0400
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-02 21:45 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-02 19:57 -0400
Re: "Unicode" legalize+jeeves@mail.xmission.com (Richard) - 2016-09-01 18:45 +0000
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-01 15:11 -0400
Re: "Unicode" David Brown <david.brown@hesbynett.no> - 2016-09-01 22:27 +0200
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-01 21:37 +0100
Re: "Unicode" Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-01 20:53 -0400
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-02 05:57 +0200
Re: "Unicode" Bo Persson <bop@gmb.dk> - 2016-08-30 21:30 +0200
Re: "Unicode" Bo Persson <bop@gmb.dk> - 2016-08-30 21:40 +0200
Re: "Unicode" Daniel <danielaparker@gmail.com> - 2016-08-30 13:39 -0700
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-01 21:54 +0100
Re: "Unicode" raltbos@xs4all.nl (Richard Bos) - 2016-09-03 08:00 +0000
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-03 14:10 -0500
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-04 09:56 +0200
Re: "Unicode" Paavo Helde <myfirstname@osa.pri.ee> - 2016-09-04 14:37 +0300
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-05 12:53 +0200
Re: "Unicode" Paavo Helde <myfirstname@osa.pri.ee> - 2016-09-05 15:30 +0300
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-05 16:13 +0200
Re: "Unicode" Paavo Helde <myfirstname@osa.pri.ee> - 2016-09-05 22:03 +0300
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-05 23:54 +0200
Re: "Unicode" Keith Thompson <kst-u@mib.org> - 2016-09-05 15:35 -0700
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-06 00:18 +0200
Re: "Unicode" Keith Thompson <kst-u@mib.org> - 2016-09-05 16:17 -0700
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-06 01:20 +0200
Re: "Unicode" Keith Thompson <kst-u@mib.org> - 2016-09-05 17:16 -0700
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-06 02:42 +0200
Re: "Unicode" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-09-05 23:05 +0100
Re: "Unicode" Vir Campestris <vir.campestris@invalid.invalid> - 2016-09-04 21:37 +0100
Re: "Unicode" Paavo Helde <myfirstname@osa.pri.ee> - 2016-09-05 00:22 +0300
Re: "Unicode" Vir Campestris <vir.campestris@invalid.invalid> - 2016-09-05 21:32 +0100
Re: "Unicode" Paavo Helde <myfirstname@osa.pri.ee> - 2016-09-06 00:00 +0300
Re: "Unicode" Vir Campestris <vir.campestris@invalid.invalid> - 2016-09-07 21:19 +0100
Re: "Unicode" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-09-08 02:16 +0200
csiph-web