Opened 10 years ago
Last modified 6 years ago
#2390 new defect
Command console is crashing if any system user name contains accented character — at Initial Version
Reported by: | imincik1 | Owned by: | martinl |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Default | Version: | svn-releasebranch70 |
Keywords: | wingrass | Cc: | ludmilafurtkevicova@… |
CPU: | Unspecified | Platform: | MSWindows 8 |
Description
Command console is crashing if any user account in system contains accented character (for example "Ľudka").
GRASS Version: 7.0.0beta OS version: Windows 8
To reproduce, try to create user "Ľudka" in you operating system, launch GRASS and try to run some command (for example: d.rast map= ...) by typing it in Command console.
Traceback: Traceback (most recent call last):
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\gui\wxpython\gui_core\prompt.py", line 262, in OnItemSelected
self.cmdDesc = gtask.parse_interface(GetRealCmd(cmd))
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\python\grass\script\task.py", line 505, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\python\grass\script\task.py", line 465, in get_interface_description
stderr = PIPE)
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\python\grass\script\core.py", line 55, in init
fcmd = get_real_command(args[0])
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\python\grass\script\core.py", line 261, in get_real_command
full_path = shutil_which(cmd + '.py')
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\etc\python\grass\script\core.py", line 223, in shutil_which
name = os.path.join(dir, thefile)
File "C:\Program Files (x86)\GRASS GIS
7.0.0beta2\Python27\lib\ntpath.py", line 108, in join
path += "
" + b
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xbc in position 9: ordinal
not in range(128)