if use_locale:
# Get the default charset.
try:
- lcAll = locale.getdefaultlocale()
+ if sys.version_info[:2] < (3, 11):
+ lcAll = locale.getdefaultlocale()
+ else:
+ lcAll = []
except locale.Error as err:
#print("WARNING:", err, file=sys.stderr)
lcAll = []
if name_utf8:
path = '/'.join([name_utf8] + file['path.utf-8'])
else:
- _name_utf8 = name
- path = '/'.join([_name_utf8] + file['path.utf-8'])
+ path = '/'.join([name] + file['path.utf-8'])
else:
if name_utf8:
path = '/'.join([name_utf8] + path)