Skip to content

Commit 8cbbec4

Browse files
authored
Fix running Closure when input file is located in a path with a UTF-8 character. (#24561)
Fix running Closure when input file is located in a path with a UTF-8 character. Fixes `other.test_no_minify_and_later_closure` when emsdk installed under a UTF-8 subdir.
1 parent 1577417 commit 8cbbec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/building.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def run_closure_cmd(cmd, filename, env):
637637
tempfiles = shared.get_temp_files()
638638

639639
def move_to_safe_7bit_ascii_filename(filename):
640-
if filename.isascii():
640+
if os.path.abspath(filename).isascii():
641641
return os.path.abspath(filename)
642642
safe_filename = tempfiles.get('.js').name # Safe 7-bit filename
643643
shutil.copyfile(filename, safe_filename)

0 commit comments

Comments
 (0)