Skip to main content
8 votes

Valid values for LC_CTYPE?

I didn't get into the details of who's "right or wrong" - but was equally annoyed by the issue. Some solutions to this: Server-side: change/disable AcceptEnv LC_* in /etc/ssh/sshd cons: ...
Keith W.'s user avatar
6 votes
Accepted

Valid values for LC_CTYPE?

The basic question is My primary question is, is this a bug in MacOS? Or is Linux wrong in insisting that the variable needs to be set to a fully specified locale name? and the POSIX page for ...
Thomas Dickey's user avatar
6 votes

Gnome (Debian 11): How to install en_DK formats (date, numbers, units)?

Turns out I had already noted down the process some years ago, it still works: $ sudo vim /etc/locale.gen Find and enable the line en_DK.UTF-8 UTF-8, save and exit. $ sudo locale-gen Now open Gnome '...
0__'s user avatar
  • 704
4 votes

Why do I get a "error: Bad entry 'en_US '" when generating locales?

locale-gen is a (not very well written) bash script. That error is reported by: is_entry_ok() { if [ -n "$locale" -a -n "$charset" ] ; then true else echo "error: Bad entry '$locale $...
Stéphane Chazelas's user avatar
3 votes

Why can't I type a g̃ the same way I type ñ?

From what I have read, you are out of luck using standard xkb because, as you have found, with xkb the output of a dead key combo is either zero (if the second key did not match a valid sequence) or ...
Old Pro's user avatar
  • 1,326
3 votes
Accepted

how to translate bash script "echo messages" automatic method

you can't change some language setting and your script's echo commands will magically be another language. you can do one of the following: source a language file. create a bash script that converts ...
mikejonesey's user avatar
  • 2,080
3 votes

how to translate bash script "echo messages" automatic method

You can use the $"…" syntax to specify a string that is to be translated according to the locale. The translations must be in a message catalog file; see the bash manual for where this file is ...
Gilles 'SO- stop being evil''s user avatar
2 votes
Accepted

Growpart throws unexpected error "unexpected output in sfdisk --version"

The problem lies at the fact that I am using zh_CN.UTF8 as locale. growpart checks sfdisk's output but didn't take other languagues in consideration. To mitigate this, just add LANG=en_US.UTF-8 at the ...
march_happy's user avatar
2 votes

Setting locale for user

Setting any locale incorrectly can produce unwanted results, but first and foremost I would refrain from using en_US.utf8 - instead use en_US.UTF-8. Lowercase .utf8 may be usefull in certain ...
hillbllie's user avatar
2 votes

Fastest way to get an Euro symbol at a prompt?

One option is make the Euro symbol accessible on the third level of the keyboard layout. This is the level above the second level (Shift+key). First of all, you have some options when it comes to ...
Guildenstern's user avatar
2 votes
Accepted

Why so many default fonts in Ubuntu?

I can't address the "why" and don't see any way of avoiding the installation of all these fonts. But I use the following code to remove fonts I don't need. Obviously, you may not want to remove all of ...
DK Bose's user avatar
  • 967
2 votes

How do I get a Hebrew keyboard layout with Caps-Shift-based Niqqud (SI 1452)?

The SI 1452 keyboard layout variant has been adopted as the default layout for Hebrew, so one should be able to type Hebrew characters without changing the layout - but not the way OP is used to. To ...
einpoklum's user avatar
  • 9,828
2 votes
Accepted

Why do I get a "error: Bad entry 'en_US '" when generating locales?

Edit: This workaround is probably not the best solution; but it does work. Based on @StephaneChazelas' answer, I figured out the problem is with /var/lib/locales/supported.d/mintlocale - a file ...
einpoklum's user avatar
  • 9,828
2 votes

How to properly decode utf7 file names obtained from an IMAP server

A quick test converting Cyrillic from UTF8 to UTF7 echo 'Here we go. Це коротке речення' | iconv -f utf-8 -t utf-7 Here we go. +BCYENQ +BDoEPgRABD4EQgQ6BDU +BEAENQRHBDUEPQQ9BE8 Reading a description ...
Chris Davies's user avatar
1 vote
Accepted

xgettext incorrectly sorts strings

The comments in the output file give a clue.  Apparently -F is sorting by line number, and then sorting alphabetically within each line.  Simply changing the input to char * elements[] = {gettext(&...
Scott - Слава Україні's user avatar
1 vote

Is there a way to change the flag associated with a language?

Your need to change sy.svg in /usr/share/xfce4/xkb/flags/ to what ever you want (make sure your new file is also named sy and is a svg(Scalable Vector Graphics), but you need to do it as sudo or root. ...
UsernamePizza's user avatar
1 vote
Accepted

Why can't I type a g̃ the same way I type ñ?

I just upgraded to Ubuntu 20.04, and now the .XCompose solution works perfectly! So that should be the best solution. You just need to make an .XCompose file in your home directory as follows, or add ...
mmaluff's user avatar
  • 181
1 vote
Accepted

Displaying accents on the Linux console

Centos 7 (on my test virt, and presumably also Centos 6) tend to set UTF-8 by default, unless you told the installer otherwise, or reconfigured the system for some other encoding. /root/anaconda-ks....
thrig's user avatar
  • 35.2k
1 vote

change zypper language

You can execute export LC_ALL=C before zypper ..... For instance: # export LC_ALL=C # zypper dup Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these ...
texwil63's user avatar
1 vote
Accepted

set language bash and put variables

It seems like gettext is the best solution however if you really don't want to use it maybe something like this would suffice? Assuming your bash supports arrays. #!/bin/bash greeting=("Hello World" "...
Zachary Brady's user avatar
1 vote

Why is there no "Euro English" locale?

I use en_IE@euro ISO-8859-15 $ export LC_MONETARY= "en_IE@euro ISO-8859-15" ... but I'm not exactly sure about measurements, considering using nl_NL.UTF-8 or nl_BE.UTF-8, the only issue I have with ...
marxengels02's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible