[Buildroot] Unicode problem with check-uniq-files

Jaap Crezee jaap at jcz.nl
Thu Mar 22 10:43:36 UTC 2018


Hi Yann,

On 03/21/18 22:44, Yann E. MORIN wrote:
> If you change your LC_ALL et al to an UTF-8 locale, it will work again,
> I believe.

That is not working for me:

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
>>>   Finalizing target directory
# Check files that are touched by more than one package
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (UTF-8)
./support/scripts/check-uniq-files -t target /data/work/jcz/git/jidiot/clients/innr/buildroot_development/output/build/packages-file-list.txt
Traceback (most recent call last):
  File "./support/scripts/check-uniq-files", line 42, in <module>
    sys.exit(main())
  File "./support/scripts/check-uniq-files", line 31, in main
    for row in r:
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte


BTW my LANG is set to "C".

> No, because we don't always have a host-python that is built. Besides,
> python is a requirement for Buildroot, see the manual:
>     https://buildroot.org/downloads/manual/manual.html#requirement-mandatory

Okay, clear.

regards,


Jaap



More information about the buildroot mailing list