On Mon, Jul 22, 2013 at 2:34 PM, eryksun <eryk...@gmail.com> wrote: > > Just to clarify, tree isn't completely Unicode naive. It writes > Unicode to the console, presuming you're using a font that supports > it, such as Consolas. >
Interesting! Indeed - I just moved my test Cyrillic file to a different folder (so TREE wouldn't scroll off the page) and sho 'nuff there it is - Мама, я хочу домой.RSP. The problem is that it doesn't configure ULIB to use the current > console code page when streaming to a pipe or file. It leaves it at > the default setting, which is to encode Unicode to the OEM code page > (e.g. 437). If it would use the current code page instead, you could > try setting it to 65001 (a somewhat-buggy UTF-8 code page). Streaming > the UTF-16 directly (like cmd's /U option) would be even better, but > that would require modifying ULIB. > > That said, I doubt anyone at Microsoft cares. It's a dinky utility > written back in the early 90s. Probably no one has even looked at the > code in years. > So it does the job correctly, as long as everything fits on one screen. Good to know...
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor