python/samba: ignore encoding errors while reading files
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 12 Mar 2019 14:43:42 +0000 (15:43 +0100)
committerNoel Power <npower@samba.org>
Wed, 3 Apr 2019 11:33:38 +0000 (11:33 +0000)
commit7a413a6dab3b0ffe4ea210adfd79d93d1b62215c
tree18f0a279d01705e57d05def1362c58a434b88d47
parentd01c5bc9fbe316d2358ead6382f4e7e3bf5fc000
python/samba: ignore encoding errors while reading files

Provisioning fails on C locale due to the Unicode quotes in ldif
data. Patch read_and_sub_file() to read the files as UTF-8.

Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Wed Apr  3 11:33:38 UTC 2019 on sn-devel-144
python/samba/__init__.py