Opened 10 years ago

Last modified 6 years ago

#2390 new defect

Command console is crashing if any system user name contains accented character

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 (last modified by martinl)

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)

Change History (6)

comment:1 by martinl, 10 years ago

Description: modified (diff)
Keywords: wingrass added

comment:2 by marisn, 10 years ago

Still an issue with 7.0.0 r63925 Tested with Windows Vista.

comment:3 by martinl, 9 years ago

Milestone: 7.0.07.0.5

comment:4 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:5 by neteler, 7 years ago

Milestone: 7.0.67.0.7

comment:6 by martinl, 6 years ago

Milestone: 7.0.77.6.2

Still relevant.

Note: See TracTickets for help on using tickets.