haniceboy / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Gyp doesn't understand paths with non-latin symbols #265

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Tried to build chromium yesterday. After 'gclient sync' started 'gyp_chromium' 
script from folder in path 
/home/redwan/Разработка/chromium/src/build/ 
Bug occurs 'cause part of the path is not in latin symbols 
(Разработка  - russian, means 'development'). 

Tried to run in Ubuntu 12.04 x64

Trace information

./build/gyp_chromium
chrome_src:/home/redwan/Разработка/chromium/src
gyp_dir: /home/redwan/Разработка/chromium/src/tools/gyp/pylib
Updating projects from gyp files...
['./build/all.gyp', '-I./build/common.gypi', '--no-circular-check']
/usr/lib/python2.7/genericpath.py:71: UnicodeWarning: Unicode equal comparison 
failed to convert both arguments to Unicode - interpreting them as being unequal
  s1 = min(m)
Traceback (most recent call last):
  File "./build/gyp_chromium", line 176, in <module>
    sys.exit(gyp.main(args))
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/__init__.py", line 471, in main
    options.circular_check)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/__init__.py", line 111, in Load
    depth, generator_input_info, check, circular_check)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 2381, in Load
    depth, check)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 433, in LoadTargetBuildFile
    includes, depth, check)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 387, in LoadTargetBuildFile
    build_file_data, PHASE_EARLY, variables, build_file_path)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1028, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, phase, variables, build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 905, in ProcessConditionsInDict
    variables, build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1054, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1069, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1054, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1069, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1054, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 1073, in ProcessVariablesAndConditionsInList
    expanded = ExpandVariables(item, phase, variables, build_file)
  File "/home/redwan/Разработка/chromium/src/tools/gyp/pylib/gyp/input.py", line 690, in ExpandVariables
    replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
  File "/home/redwan/Разработка/chromium/src/tools/grit/grit_info.py", line 131, in DoMain
    inputs = Inputs(filename, defines)
  File "/home/redwan/Разработка/chromium/src/tools/grit/grit_info.py", line 100, in Inputs
    return [os.path.relpath(f, cwd) for f in files]
  File "/usr/lib/python2.7/posixpath.py", line 410, in relpath
    i = len(commonprefix([start_list, path_list]))
  File "/usr/lib/python2.7/genericpath.py", line 71, in commonprefix
    s1 = min(m)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal 
not in range(128)

Original issue reported on code.google.com by N.A.Kors...@gmail.com on 11 May 2012 at 6:41