[RTEMS Project] #4059: RSB: UnicodeDecodeError

RTEMS trac trac at rtems.org
Wed Dec 22 11:37:04 UTC 2021


#4059: RSB: UnicodeDecodeError
-----------------------------+---------------------
 Reporter:  Sebastian Huber  |       Owner:  (none)
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  5.2
Component:  tool/rsb         |     Version:  5
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+---------------------

Comment (by Arne Ehrlich):

 This error occurs when the python locale environment is not set correctly.
 I got this for an compile error message when rtems-source-builder  failing
 to building expat on MacOS.

 ensuring LANG and LC_ALL are set fixed the problem writing the error log

 export LANG='en_US.UTF-8'  LC_ALL='en_US.UTF-8'

 LANG is generally set correctly on macos.

 if one is setting one of the LC_* variables to a different locale
 (I use LC_TIME="de_DE.UTF-8")

 then python assumes the encoding is ascii only.

 setting LC_ALL overrides this and python happily uses utf-8 again.

--
Ticket URL: <http://devel.rtems.org/ticket/4059#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list