Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6154] Tooling: Path issue, ascii codec can't decode byte

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2016-08-22T18:05:56.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterPaul Dowsett
AssigneeIngo Muschenetz
Created2011-11-11T08:29:42.000+0000
Updated2017-03-16T21:35:57.000+0000

Description

As per [this Q&A thread](http://developer.appcelerator.com/question/121635/appcelerator-studio-cannot-work-with-non-ascii-paths), the user cannot use Titanium Studio when non-ascii characters exist in the path to Studio's settings data.
Traceback (most recent call last):
  File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\project.py", line 100, in <module>
    main(sys.argv,len(sys.argv))
  File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\project.py", line 83, in main
    run([sys.executable, android_gen, name, appid, directory, android_sdk])
  File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\project.py", line 9, in run
    return subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate()
  File "C:\Users\????\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\lib\subprocess.py", line 594, in __init__
    errread, errwrite)
  File "C:\Users\????\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\lib\subprocess.py", line 779, in _execute_child
    args = list2cmdline(args)
  File "C:\Users\????\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\lib\subprocess.py", line 531, in list2cmdline
    return ''.join(result)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128)
The question marks in the path C:\Users\????\AppData\ are %D0%94%D0%B8%D0%BC%D0%B0 (in utf8) or %C4%E8%EC%E0 (in win 1251)

Comments

  1. Chris Barber 2016-08-22

    Dupe of TIMOB-5283.
  2. Lee Morris 2017-03-16

    Closing ticket as duplicate.

JSON Source