Lately, NXP released a Yocto Jethro BSP. Has anyone one noticed the locale library incompatible problem?
root:~# sh -c "LANG=en_US"
sh: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
Aborted
root:~#
How to work this around?
Solved! Go to Solution.
The IMAGE_LINGUAS handles which locale packages are installed into the image. It does not handle the environment default.
The locale system works as in every Linux based distribution, it respects the locale environment setting.
You can try setting:
LC_ALL=...
and opening the application you want.
Hello Eric Lee,
The en_US.UTF-8 (IMAGE_LINGUAS = "en-us") should be set as default as far as I know but you can make sure it's generated using GLIB_GENERATE_LOCALES = "en_US.UTF-8" on the local.conf file.
OtavioSalvador, would you know how locales are handled on the Jethro branch?
Regards,
The IMAGE_LINGUAS handles which locale packages are installed into the image. It does not handle the environment default.
The locale system works as in every Linux based distribution, it respects the locale environment setting.
You can try setting:
LC_ALL=...
and opening the application you want.