perl: warning: Falling back to the standard locale ("C") #135

Closed
opened 2015-09-15 06:30:07 +00:00 by philm · 7 comments
philm commented 2015-09-15 06:30:07 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

We should set a locale so we don't have these warnings anymore:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*Created by: philmmanjaro* We should set a locale so we don't have these warnings anymore: ``` perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). ```
philm commented 2015-09-21 19:15:01 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

if ${build_locales};then
    msg3 "Using build locales ..."
    mv "$working_dir/etc/locale.gen" "$working_dir/etc/locale.gen.bak"
    mv "$working_dir/etc/locale.conf" "$working_dir/etc/locale.conf.bak"
    printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
    printf 'LANG=%s.UTF-8\n' en_US > "$working_dir/etc/locale.conf"
    printf 'LC_MESSAGES=C\n' >> "$working_dir/etc/locale.conf"
fi

Atm, it is set to en and de.

*Created by: udeved* ``` if ${build_locales};then msg3 "Using build locales ..." mv "$working_dir/etc/locale.gen" "$working_dir/etc/locale.gen.bak" mv "$working_dir/etc/locale.conf" "$working_dir/etc/locale.conf.bak" printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen" printf 'LANG=%s.UTF-8\n' en_US > "$working_dir/etc/locale.conf" printf 'LC_MESSAGES=C\n' >> "$working_dir/etc/locale.conf" fi ``` Atm, it is set to en and de.
philm commented 2015-09-21 20:00:09 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Are you sure as it is unset for LANGUAGE and LC_ALL as the message suggests. And how do you explain that:

==> Extracting sources...
  -> Extracting linux-4.3-rc2.tar.xz with bsdtar
bsdtar: Failed to set default locale
*Created by: philmmanjaro* Are you sure as it is unset for LANGUAGE and LC_ALL as the message suggests. And how do you explain that: ``` ==> Extracting sources... -> Extracting linux-4.3-rc2.tar.xz with bsdtar bsdtar: Failed to set default locale ```
philm commented 2015-09-21 20:01:59 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I confused the switch, the above code is for iso not pkg building.

*Created by: udeved* I confused the switch, the above code is for iso not pkg building.
philm commented 2015-09-21 20:03:57 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Ah, ok. Well in devtools de and en is set. Take a look at it when you find some time.

*Created by: philmmanjaro* Ah, ok. Well in **devtools** de and en is set. Take a look at it when you find some time.
philm commented 2015-09-21 20:11:34 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I think we just have to remove the build_locale switch, and let it always run in mkchroot.

*Created by: udeved* I think we just have to remove the build_locale switch, and let it always run in mkchroot.
philm commented 2015-09-21 20:11:56 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I I will remove it.

*Created by: udeved* I I will remove it.
philm commented 2015-09-21 20:57:16 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Didn't remove it, but call buildpkg with -L arg.

*Created by: udeved* Didn't remove it, but call buildpkg with -L arg.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#135
No description provided.