Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: force utf8 when updating backend docs from python script (#5721)

albertony29b8c71522c9
diff --git a/bin/make_backend_docs.py b/bin/make_backend_docs.py
index a1391229d..8753061f9 100755
--- a/bin/make_backend_docs.py
+++ b/bin/make_backend_docs.py
@@ -33,7 +33,7 @@ def alter_doc(backend):
raise ValueError("Didn't find doc file %s" % (doc_file,))
new_file = doc_file+"~new~"
altered = False
- with open(doc_file, "r") as in_file, open(new_file, "w") as out_file:
+ with open(doc_file, "r", encoding="utf_8") as in_file, open(new_file, "w", encoding="utf_8") as out_file:
in_docs = False
for line in in_file:
if not in_docs: