Skip to content

Commit 9b0635f

Browse files
set locale for perl binary after OS update
1 parent 9c8ca19 commit 9b0635f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,14 @@ def strip_resource_phases(repo_path, stdout=sys.stdout, stderr=sys.stderr):
397397
"""Strip resource build phases from a given project."""
398398
command = ['perl', '-i', '-00ne',
399399
'print unless /Begin PBXResourcesBuildPhase/']
400+
env = os.environ.copy()
401+
env['LANG'] ='en_US.UTF-8'
400402
for root, dirs, files in os.walk(repo_path):
401403
for filename in files:
402404
if filename == 'project.pbxproj':
403405
pbxfile = os.path.join(root, filename)
404406
common.check_execute(command + [pbxfile],
405-
stdout=stdout, stderr=stderr)
407+
stdout=stdout, stderr=stderr, env=env)
406408

407409

408410
def dispatch(root_path, repo, action, swiftc, swift_version,

0 commit comments

Comments
 (0)