mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
0f3066abbb
This code was python 2 specific (string handling has changed dramatically in python 3), and didn't correctly decode utf-16 in python3. We should instead read the file as bytes, then attempt a utf-8 decode (the default), and try utf-16 if encountering a decode failure. The existing code actually throws an exception on the initial file read when the data is utf-16, since it tries to decode the bytes to a utf-8 string. Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> |
||
---|---|---|
.. | ||
emulate | ||
gp_parse | ||
kcc | ||
netcmd | ||
provision | ||
samba3 | ||
subunit | ||
tests | ||
__init__.py | ||
auth_util.py | ||
colour.py | ||
common.py | ||
compat.py | ||
dbchecker.py | ||
descriptor.py | ||
dnsserver.py | ||
domain_update.py | ||
drs_utils.py | ||
forest_update.py | ||
getopt.py | ||
gp_ext_loader.py | ||
gp_scripts_ext.py | ||
gp_sec_ext.py | ||
gp_sudoers_ext.py | ||
gpclass.py | ||
graph.py | ||
hostconfig.py | ||
idmap.py | ||
join.py | ||
logger.py | ||
mdb_util.py | ||
ms_display_specifiers.py | ||
ms_forest_updates_markdown.py | ||
ms_schema_markdown.py | ||
ms_schema.py | ||
ndr.py | ||
ntacls.py | ||
remove_dc.py | ||
samdb.py | ||
schema.py | ||
sd_utils.py | ||
sites.py | ||
subnets.py | ||
tdb_util.py | ||
upgrade.py | ||
upgradehelpers.py | ||
uptodateness.py | ||
xattr.py |