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