We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exact same as last time (see #101) except this time it barfs on directory names that are Shift-JIS encoded (because of course those are as well)
my python code:
import pycdlib iso = pycdlib.PyCdlib() iso.open('Gorippa Petit 19.iso') for f in iso.walk(iso_path='/', encoding='shift_jis'): print(f)
The error:
('/', ['JPEG', 'EPS', 'DATA'], ['検索ブラウザ.exe', 'お読みください.txt']) ('/DATA', [], ['macromedia.dxr', 'MENU.DXR', 'KUMI.DXR', 'BUHIN.DXR']) ('/EPS', ['部品', '組合せ'], []) Traceback (most recent call last): File "test.py", line 7, in <module> for f in iso.walk(iso_path='/', encoding='shift_jis'): File "/lib/python3.10/site-packages/pycdlib/pycdlib.py", line 5916, in walk relpath = self.full_path_from_dirrecord(dir_record, File "/lib/python3.10/site-packages/pycdlib/pycdlib.py", line 5692, in full_path_from_dirrecord names.insert(0, name.decode(encoding)) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 0: invalid start byte
The folder name in question is b'\x91g\x8d\x87\x82\xb9' or 組合せ once correctly decoded
b'\x91g\x8d\x87\x82\xb9'
組合せ
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Exact same as last time (see #101) except this time it barfs on directory names that are Shift-JIS encoded (because of course those are as well)
my python code:
The error:
The folder name in question is
b'\x91g\x8d\x87\x82\xb9'
or組合せ
once correctly decodedThe text was updated successfully, but these errors were encountered: