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