You are not logged in.

#1 2011-09-28 23:13:37

taylorchu
Member
Registered: 2010-08-09
Posts: 405

[locale-gen]why is de_DE and en_US there by default?

I cannot find the code that turns on de_DE and en_US on in PKGBUILD. does anyone know why glibc turns them on?


"After you do enough distro research, you will choose Arch."

Offline

#2 2011-09-28 23:37:48

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: [locale-gen]why is de_DE and en_US there by default?

Because it won't build without them, or at least needs them for tests.

http://mailman.archlinux.org/pipermail/ … 07409.html

Offline

#3 2011-09-29 01:29:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [locale-gen]why is de_DE and en_US there by default?

In fact, no locales are enabled by default....   From the glibc PKGBUILD:

  sed -i "s|^|#|g" ${pkgdir}/etc/locale.gen

That comments out every single line in /etc/locale.gen...

Offline

#4 2011-09-29 03:31:19

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: [locale-gen]why is de_DE and en_US there by default?

@allan
I found that line too. but during installation process, locale-gen indeed generates de_DE en_US.

is there any package that might touch /etc/locale.gen ?
i think it is in post_install.


"After you do enough distro research, you will choose Arch."

Offline

#5 2011-09-29 03:41:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [locale-gen]why is de_DE and en_US there by default?

During installation as in a clean Arch install?  Which installer?  I can only see en_US.UTF8 enabled:
http://projects.archlinux.org/archiso.g … locale.gen

Any further locales are added by the user during configuration.

Offline

#6 2011-09-29 03:51:11

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: [locale-gen]why is de_DE and en_US there by default?

no installer.

this is what i did

chroot_mount
pacman -Sy $packages -root $rootdir
chroot_umount

in the very end of install, it shows

Generating locale...
de_DE.UTF-8...
en_US.UTF-8..

"After you do enough distro research, you will choose Arch."

Offline

#7 2011-09-29 04:01:01

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [locale-gen]why is de_DE and en_US there by default?

What is your chroot_mount and chroot_unmount doing?   As far as I can tell, no package other than glibc runs locale-gen.   And even then, glibc does not run it on first install, only when upgraded.   So "pacman -Sy --root $rootdir base" does not run locale-gen at all when $rootdir is empty.

Offline

#8 2011-09-29 04:04:22

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: [locale-gen]why is de_DE and en_US there by default?

@allan
i fount it
http://projects.archlinux.org/devtools. … hroot#n224
this is stupid. could someone remove this line?


"After you do enough distro research, you will choose Arch."

Offline

#9 2011-09-29 04:24:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [locale-gen]why is de_DE and en_US there by default?

File a bug report.

Offline

#10 2011-09-29 04:38:28

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: [locale-gen]why is de_DE and en_US there by default?

what is the usage of mkarchroot? maybe it is because: http://mailman.archlinux.org/pipermail/ … 07409.html
i am experimenting to write my own "archiso". the current version of archiso uses mkarchroot, which is totally not needed.

Last edited by taylorchu (2011-09-29 04:39:48)


"After you do enough distro research, you will choose Arch."

Offline

#11 2011-09-29 05:34:51

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: [locale-gen]why is de_DE and en_US there by default?


"After you do enough distro research, you will choose Arch."

Offline

#12 2011-09-29 07:35:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [locale-gen]why is de_DE and en_US there by default?

taylorchu wrote:

That information is several years old and no longer relevant...

Offline

Board footer

Powered by FluxBB