Linux standalone: Include locale files in the bundle, and generate locale definition files for the locales in use when starting runshell.
Currently only done for utf-8 locales because the charset can easily be told for those. Other locales don't include the charset in their name. The locale definition is generated under git-annex.linux/locales. So, this only works if the user can write there. If locale generation fails for any reason, it's silently skipped. The git-annex-standalone.deb installs the bundle under /usr, so this locale generation won't work for non-root users.
This commit is contained in:
parent
a93e38e8fc
commit
aacd9b190d
4 changed files with 40 additions and 11 deletions
|
@ -91,6 +91,8 @@ preferredBundledPrograms = catMaybes
|
|||
-- used to unpack the tarball when upgrading
|
||||
, Just "gunzip"
|
||||
, Just "tar"
|
||||
-- used by runshell to generate locales
|
||||
, Just "localedef"
|
||||
#endif
|
||||
-- nice, ionice, and nocache are not included in the bundle;
|
||||
-- we rely on the system's own version, which may better match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue