Skip to content

main/openrc: set default termencoding to utf-8

Ghost User requested to merge (removed):utf8 into master

not entirely sure if this is the right approach.

the issue is that, while having a LANG that ends with .UTF-8, applications will send utf8 sequences to the console. e.g., apk's progress bar, various things that want to render bars, ...

but, by default the console will not interpret them correctly. so, they look something like:

image

adding this escape, from man 4 console_codes:

ESC % G               Select UTF-8

sets it into the correct mode along with the LANG value that we define. so everything should display.. correctly.

however, i don't know if there are potential drawbacks/edge cases to doing this.

Merge request reports