Hacker News new | ask | show | jobs
by sirmac1k 1520 days ago
Does anyone know what is the current state of UTF-8 support in OpenBSD?

Last time I tired it I had big problems with it in base install. Both editors and mandoc were falling short in that regard.

1 comments

Text console is ASCII. Xorg speaks UTF-8 fluently. Just set LC_CTYPE=cs_CZ.UTF-8 in .xsession or equivalent (locale -a) and you're good to go.
Extended ASCII, that is. So, there are characters such as á, ű, ó and whatnot. Many people think that "lack of UTF-8" or "ASCII only" means there are no such characters.
There is no such thing as extended ASCII, as the standard only specifies characters up to 0x7F. What comes after is implementation dependent, DOS/Windows had code pages, there's ISO standards, SHIFT-JIS, etc. none of which are compatible with each other.
Glad to hear that. In that case text console in OpenBSD is not ASCII since I can pretty much both type and see those characters, right?! I mean, why say that it is ASCII-only if extended ASCII does not exist, yet those characters are displayed properly?
Probably it's defaulting to ISO-8859-1, which is a superset of ASCII for Western European languages.

I don't use OpenBSD.

Thanks. Unfortunately that's what I was afraid of. I need it mostly in TTY, so still gonna wait for some improvements there.