This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new f2fbbe818 Make sure filenames are interpreted as utf8
f2fbbe818 is described below

commit f2fbbe8186a3b9db537c1ba3cfa0844a62c224c4
Author: Dave Brondsema <[email protected]>
AuthorDate: Wed Jun 7 16:30:27 2023 -0400

    Make sure filenames are interpreted as utf8
---
 ForgeGit/forgegit/model/git_repo.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ForgeGit/forgegit/model/git_repo.py 
b/ForgeGit/forgegit/model/git_repo.py
index 148d22c24..4979a7dc3 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -16,6 +16,7 @@
 #       under the License.
 from __future__ import annotations
 
+import sys
 import os
 import shutil
 import string
@@ -49,6 +50,10 @@ if typing.TYPE_CHECKING:
 
 log = logging.getLogger(__name__)
 
+assert sys.getfilesystemencoding() == 'utf-8', \
+    'Filesystem encoding is not set to utf-8.  You should set 
https://docs.python.org/3/library/os.html#utf8-mode'
+
+
 gitdb.util.mman = gitdb.util.mman.__class__(
     max_open_handles=128)
 

Reply via email to