Mageia Bugzilla – Attachment 6568 Details for
Bug 9238
rescue mode has no locale set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
set locale to C (untested)
9238.diff (text/plain), 554 bytes, created by
Thierry Vignaud
on 2015-05-17 19:31:07 CEST
(
hide
)
Description:
set locale to C (untested)
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-05-17 19:31:07 CEST
Size:
554 bytes
patch
obsolete
>diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img >index 8e3f643..583a5fd 100755 >--- a/rescue/make_rescue_img >+++ b/rescue/make_rescue_img >@@ -54,11 +54,11 @@ foreach (keyboard::loadkeys_files(sub { warn @_ })) { > } > } > >-if (my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV) { >+my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV; >+$LANGUAGE ||= 'C'; > substInFile { > $_ = "export LANGUAGE=$LANGUAGE\n" . "export LC_ALL=$LANGUAGE\n" if /^#LANGUAGE/; > } "$tmp/usr/bin/mageia-rescue"; >-} > > exit 0 if $ARGV[0]; >
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index 8e3f643..583a5fd 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -54,11 +54,11 @@ foreach (keyboard::loadkeys_files(sub { warn @_ })) { } } -if (my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV) { +my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV; +$LANGUAGE ||= 'C'; substInFile { $_ = "export LANGUAGE=$LANGUAGE\n" . "export LC_ALL=$LANGUAGE\n" if /^#LANGUAGE/; } "$tmp/usr/bin/mageia-rescue"; -} exit 0 if $ARGV[0];
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9238
:
4297
| 6568