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