|
|
26f3ef |
diff -up firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py.build-ascii-decode-fail-rhel7 firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py
|
|
|
26f3ef |
--- firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py.build-ascii-decode-fail-rhel7 2022-06-23 09:11:39.000000000 +0200
|
|
|
26f3ef |
+++ firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py 2022-08-16 13:24:31.697757209 +0200
|
|
|
26f3ef |
@@ -73,6 +73,8 @@ class Reader(object):
|
|
|
26f3ef |
self.name = "<unicode string>"
|
|
|
26f3ef |
self.check_printable(stream)
|
|
|
26f3ef |
self.buffer = stream+'\0'
|
|
|
26f3ef |
+ #self.encoding = 'utf-8'
|
|
|
26f3ef |
+ #self.raw_decode = codecs.utf_8_decode
|
|
|
26f3ef |
elif isinstance(stream, bytes):
|
|
|
26f3ef |
self.name = "<byte string>"
|
|
|
26f3ef |
self.raw_buffer = stream
|
|
|
26f3ef |
@@ -83,6 +85,11 @@ class Reader(object):
|
|
|
26f3ef |
self.eof = False
|
|
|
26f3ef |
self.raw_buffer = None
|
|
|
26f3ef |
self.determine_encoding()
|
|
|
26f3ef |
+ print("DEBUG_OUTPUT:")
|
|
|
26f3ef |
+ print(self.name)
|
|
|
26f3ef |
+ print(self.encoding)
|
|
|
26f3ef |
+ print(self.stream)
|
|
|
26f3ef |
+ #print(self.stream.read())
|
|
|
26f3ef |
|
|
|
26f3ef |
def peek(self, index=0):
|
|
|
26f3ef |
try:
|
|
|
26f3ef |
diff -up firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py.build-ascii-decode-fail-rhel7 firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py
|
|
|
26f3ef |
--- firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py.build-ascii-decode-fail-rhel7 2022-08-16 14:16:33.432529817 +0200
|
|
|
26f3ef |
+++ firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py 2022-08-17 08:01:38.175878171 +0200
|
|
|
26f3ef |
@@ -37,7 +37,7 @@ def generate_feature_manifest(fd, input_
|
|
|
26f3ef |
write_fm_js_headers(fd)
|
|
|
26f3ef |
nimbus_dir_path = pathlib.Path(input_file).parent
|
|
|
26f3ef |
try:
|
|
|
26f3ef |
- with open(input_file, "r") as yaml_input:
|
|
|
26f3ef |
+ with open(input_file, "r", encoding="utf-8") as yaml_input:
|
|
|
26f3ef |
data = yaml.safe_load(yaml_input)
|
|
|
26f3ef |
with pathlib.Path(nimbus_dir_path, FEATURE_MANIFEST_SCHEMA).open() as f:
|
|
|
26f3ef |
schema = json.load(f)
|
|
|
26f3ef |
@@ -92,7 +92,7 @@ def generate_platform_feature_manifest(f
|
|
|
26f3ef |
)
|
|
|
26f3ef |
|
|
|
26f3ef |
try:
|
|
|
26f3ef |
- with open(input_file, "r") as yaml_input:
|
|
|
26f3ef |
+ with open(input_file, "r", encoding="utf-8") as yaml_input:
|
|
|
26f3ef |
data = yaml.safe_load(yaml_input)
|
|
|
26f3ef |
fd.write(file_structure(data))
|
|
|
26f3ef |
except (IOError) as e:
|