Skip to content

Commit afda115

Browse files
authored
Merge pull request #982 from swiftlang/fix-locale-issue
Set locale for perl binary after OS update
2 parents d017dfd + 9b0635f commit afda115

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
@@ -399,12 +399,14 @@ def strip_resource_phases(repo_path, stdout=sys.stdout, stderr=sys.stderr):
399399
"""Strip resource build phases from a given project."""
400400
command = ['perl', '-i', '-00ne',
401401
'print unless /Begin PBXResourcesBuildPhase/']
402+
env = os.environ.copy()
403+
env['LANG'] ='en_US.UTF-8'
402404
for root, dirs, files in os.walk(repo_path):
403405
for filename in files:
404406
if filename == 'project.pbxproj':
405407
pbxfile = os.path.join(root, filename)
406408
common.check_execute(command + [pbxfile],
407-
stdout=stdout, stderr=stderr)
409+
stdout=stdout, stderr=stderr, env=env)
408410

409411

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

0 commit comments

Comments
 (0)