|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^7: how are ARGV and filename strings represented?by afoken (Chancellor) |
| on Oct 01, 2024 at 23:47 UTC ( [id://11162038]=note: print w/replies, xml ) | Need Help?? |
|
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
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||