in reply to Re^6: how are ARGV and filename strings represented?
in thread how are ARGV and filename strings represented?
Things get even more interesting if you try to use filenames containing invalid UTF-8 sequences on various filenames:
Invalid-UTF8 vs the filesystem by Kristian Köhntopp. In summary:
Python does not like tar archives with invalid UTF-8 sequences.
And little ugly detail: Apparently there is a function sys.getfilesystemencoding() without parameters. Python seems to assume that all filesystems have the same encoding and that it is not path dependent.
This is at least conceptually similar to my pet problem of File::Spec, assuming uniform behaviour across various mounted filesystems.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: how are ARGV and filename strings represented?
by jeffenstein (Hermit) on Oct 02, 2024 at 08:10 UTC | |
by afoken (Chancellor) on Oct 02, 2024 at 18:08 UTC |