in library/scripts/string_pack.py [0:0]
def blob_append_locale(blob, locale):
assert len(locale) in [2, 5, 7]
blob += locale.encode("ASCII")
if len(locale) == 2:
blob += b"\0\0\0\0\0"
elif len(locale) == 5:
blob += b"\0\0"