Add --locale
option to specify fallback encoding to decode data_in
with
#553
Labels
enhancement
New feature or request
When
stat
ing a directory with some latin1-encoded filenames, I was getting this error:After figuring out that piping
stat
's output toiconv -f ISO-8859-1
would solve that but break unicode characters instead, I crudely patched my localjc
with this hack:I looked into adding a generic
--locale
option, but as I'm not familiar with thejc
code base and there is no other option taking a parameter yet, I'm filing this report instead..P.S.: .. ouch
just realized that now I'll have to invoke a separate
jc
instance for every single file, which incurs heavy interpreter overhead .. also tried to speed that up withpypy3
but that actually was worse even because very little computation takes place. Ah meh, at least it works™ .. "just" wanted to recursively back up a partition'sctime
values.. 😅💦The text was updated successfully, but these errors were encountered: