docker-library / busybox

Docker Official Image packaging for Busybox
http://busybox.net
388 stars 126 forks source link

How to Set System Locales in busybox docker image? #183

Closed phanirajkiran closed 8 months ago

phanirajkiran commented 12 months ago

HI,

I would like to know, how to set system locales in busybox.

Thanks, Phani

yosifkit commented 11 months ago

You could try the usual environment variables like LANG or LC_ALL, but I am unsure which, if any, busybox implements using. Thier focus is on size and resource optimization (https://busybox.net/about.html).

phanirajkiran commented 11 months ago

HI All, I enabled the Config and made build. But still locale is not active. image

docker image i build locally is image

Any further inputs can be helpful

Regards, Phani

tianon commented 8 months ago

I can't seem to find anything useful about BusyBox's support for locales -- in fact, for me, the second result on Google for "busybox locales" is this very issue. :sob:

If it's supported, I'm not sure whether it's well supported (or perhaps well tested). :see_no_evil:

Most of the use cases for BusyBox are likely explicitly not including locales support because they're typically focused on extremely small form factors that aren't usually used interactively (and thus locale support isn't all that important).