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