gp_inf: Read/write files with a UTF-16LE BOM in GptTmpl.inf
commitf2c40f4d41a4729bf31534ce34261d70c5dd0071
authorGarming Sam <garming@catalyst.net.nz>
Thu, 18 Jul 2019 02:50:57 +0000 (18 14:50 +1200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 7 Aug 2019 10:57:33 +0000 (7 10:57 +0000)
tree5dff585c214d56056f69330e86fe5b15fec98721
parent29fa37b717cc83080ed9eb50345370b8f40d7ce7
gp_inf: Read/write files with a UTF-16LE BOM in GptTmpl.inf

Regression caused by 16596842a62bec0a9d974c48d64000e3c079254e

[MS-GPSB] 2.2 Message Syntax says that you have to write a BOM which I
didn't do up until this patch. UTF-16 as input encoding was marked much
higher up in the inheritance tree, which got overriden with the Python 3
fixes. I've now marked the encoding much more obviously for this file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14004

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Fri Jul 19 02:20:47 UTC 2019 on sn-devel-184

(cherry picked from commit 0bcfc550b1a902e3a6a766b06603ac9285d0ff63)
python/samba/gp_parse/gp_inf.py
source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Microsoft/Windows NT/SecEdit/GptTmpl.inf.SAMBABACKUP