[Tutor] slashes in paths

Marc Tompkins marc.tompkins at gmail.com
Mon Jul 22 23:45:49 CEST 2013


On Mon, Jul 22, 2013 at 2:34 PM, eryksun <eryksun at 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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130722/70f69e26/attachment-0001.html>


More information about the Tutor mailing list