[Piglit] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117: ordinal not in range(128)

Tomi Sarvela tomi.p.sarvela at intel.com
Fri May 12 07:02:23 UTC 2017


On Thursday, 11 May 2017 20:37:00 EEST Dylan Baker wrote:
> Quoting Dai, XiangX (2017-05-10 22:54:45)
> 
> > Hi, all!
> > 
> > I test with piglit/igt-basic which is a wonderfule test tool.
> > But i find a confused issue like below:
> > 
> >   File "/usr/lib/python3.5/subprocess.py", line 705, in
> >   _translate_newlines>   
> >     data = data.decode(encoding)
> > 
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in
> > position 117: ordinal not in range(128)
> > 
> > When test igt-gem_pread-basic and igt-gem_pwrite-basic, the above
> > issue occur. I try to set the default code way to ues utf-8 but
> > not help.
> > 
> > My test host is debian with the kernel v4.11-rc8.
> 
> This might be a known python issue. What is the output of "python3
> --version"?

The char tripping up is probably 'micro sign'.

I've ran into this same issue when enviromental variables were set to 
Chinese and test output has this as byte. Can you tell your 
environmental variables, specifically LANG and LC_ALL ?

Tomi




More information about the Piglit mailing list