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