m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/locale.md
blob: bc0e65b6eaa8b043d56313896bce573acfa1baf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Locale tweaks

Every time after a clean install I have problems with multibyte (Polish)
characters not being handled by the terminal properly. To solve this: generate
both the `en_US` and `pl_PL` utf8 locales, then create a `.config/locale.conf`:

    LANG="pl_PL.utf8"
    LC_MESSAGES="en_US.utf8"
    LC_TIME="en_US.utf8"
    LC_NUMERIC="en_US.utf8"
    LC_MEASUREMENT="en_US.utf8"
    LC_MONETARY="en_US.utf8"
    LC_CTYPE="pl_PL.utf8"

## Polish font for console

    # /etc/vconsole.conf
    KEYMAP=pl2
    FONT=lat2-16

For high DPI displays (needs `terminus-font` package):

    FONT=ter-v32n