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