Python got it right; ls got it wrong - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html) +--- Forum: Bar (https://python-forum.io/forum-27.html) +--- Thread: Python got it right; ls got it wrong (/thread-12121.html) |
Python got it right; ls got it wrong - Skaperen - Aug-10-2018 Python got it right. ls and sort both got it wrong. i guess i need to rewrite these commands in Python. i was going to rewrite my rls command in Pythpn so it would be easier to add new features. but no hurry as it (the original version written in C) also sorted the listing right.
RE: Python got it right; ls got it wrong - Gribouillis - Aug-10-2018 Read this however. You may need to export LC_ALL=C
RE: Python got it right; ls got it wrong - Skaperen - Aug-10-2018 (Aug-10-2018, 07:39 AM)Gribouillis Wrote: Read this however. You may need to that seems to break UTF-8.so Python's sort doesn't follow the same "standards" as the sort command? |