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