On 09Jun2013 06:25, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: | [... heaps of useful explaination ...] | > When locale to linux system is set to utf-8 that would mean that the | > linux applications, should try to encode string into hdd by using | > system's default encoding to utf-8 nad read them back from bytes by | > also using utf-8. Is that correct? | | Yes.
Although I'd point out that only application that care about text as _text_ need to consider Unicode and the encoding. A command like "mv" does not care. You type the command and "mv" receives byte strings as its arguments. So it is doing straight forward "bytes" file renames. It does not care or even know about encodings. In this scenario, really it is the Terminal program (eg Putty) which cares about text (what you type, and what gets displayed). It is because of mismatches between your Terminal local settings and the encoding that was chosen for the filenames that you get garbage listings, one way or another. Cheers, -- Cameron Simpson <c...@zip.com.au> But then, I'm only 50. Things may well get a bit much for me when I reach the gasping heights of senile decrepitude of which old Andy Woodward speaks with such feeling. - Chris Malcolm, c...@uk.ac.ed.aifh, DoD #205 -- http://mail.python.org/mailman/listinfo/python-list