i.MX6 Yocto Jethro release problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX6 Yocto Jethro release problem

跳至解决方案
892 次查看
eric_lee1
Contributor II

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?

标签 (2)
1 解答
606 次查看
OtavioSalvador
Senior Contributor II

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.

在原帖中查看解决方案

2 回复数
606 次查看
gusarambula
NXP TechSupport
NXP TechSupport

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,

0 项奖励
607 次查看
OtavioSalvador
Senior Contributor II

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.