diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-12 08:55:30 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-12 08:55:30 +0000 |
commit | 917ac587c5de1f9caaaf112c3b0e58edf4482aeb (patch) | |
tree | fccb7c873bf8843765c441c013bea8a359fbad85 /perl-install/share | |
parent | b81e436c63f57efed51fd85d8cf3c9b0bf1baea2 (diff) | |
download | drakx-backup-do-not-use-917ac587c5de1f9caaaf112c3b0e58edf4482aeb.tar drakx-backup-do-not-use-917ac587c5de1f9caaaf112c3b0e58edf4482aeb.tar.gz drakx-backup-do-not-use-917ac587c5de1f9caaaf112c3b0e58edf4482aeb.tar.bz2 drakx-backup-do-not-use-917ac587c5de1f9caaaf112c3b0e58edf4482aeb.tar.xz drakx-backup-do-not-use-917ac587c5de1f9caaaf112c3b0e58edf4482aeb.zip |
revived, still needed since installer can't make symlinks on read-only stage2, and we can't easily workaround it by modifying LC_* variables
Diffstat (limited to 'perl-install/share')
-rw-r--r-- | perl-install/share/gen_locales.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/share/gen_locales.pl b/perl-install/share/gen_locales.pl new file mode 100644 index 000000000..fcc03f0c9 --- /dev/null +++ b/perl-install/share/gen_locales.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl + +use MDK::Common; +use lang; + +foreach (lang::list_langs()) { + if (my $exist = readlink "usr/share/locale/$_") { + die "symlink $_ already exist and is $exist\n"; + } else { + symlink "en_US.UTF-8", "usr/share/locale/$_" or die "can't create symlink $_"; + } +} |