Hi gang.
Is there any priority for having OpenBSD support UTF8?
// peter
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.cautf-8 isn't an OS-level thing. You need to do it in every app. Googling, the first result brings up http://osdir.com/ml/os.openbsd.ports/2004-02/msg00376.html as an example.
The sad thing is that the man pages don't mention that OpenBSD's libc doesn't quite support locale, multibyte/wide char conversions thus Unicode. E.g. if you look at mbstowcs(3) you'd say: okay, I can use that... but looking at the code behind it you'll see its a pure stab that does a simple memcpy from chars to ints (or wchar_ts as they modernly call it in C99).
To get back to the practical nature of my original request, if someone
can let me know how to write French characters in a terminal (via an
SSH connection) I would be very grateful. I would like to use a
terminal emulator that uses UTF8 and I believe xterm does this but I
can't find an OpenBSD package (or port) for it.
// juan
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.caYou would REALLY be surprised how much of a difference this `simple stub' does... it allows us to compile *a lot* of code that helps support utf8 in ports land. And in reality, this part of OpenBSD is C99-compliant. There's absolutely *nothing* in the standard that says you have to support any locale except the C locale (which we do). If something has to be documented, it's probably that we just support 8 bit locales for now... That said, this will eventually improve, and yes, this is a long road. The xterm in OpenBSD can do it. It supports the utf8 option. You will need an editor that supports utf8 characters as well. Both vim and emacs do. There are lots of programs in ports that have fairly decent level of locale support. Heck, I can actually write japanese in OpenBSD, for instance, and that's a *whole lot* more complicated than just french characters.
Thank you. I also have a need to be able to write UTF-8 on my non-X
systems. Do you have any thoughts on the matter?
// juan
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.caWe don't have a console that supports utf8 for now. ncurses also needs some complicated update before it will be able to deal with wide characters... Things are not as easy as they would seem...
I'm sorry I can't just shut up and code, but if UTF-8 support is planned, could it be implemented in such a way that it doesn't cause a slow-down on old hardware if it is not needed. I ran into that on Debian when they defaulted to UTF-8. Luckily, I was able to remove their locales package after setting LANG=C; with locales and UTF-8 support, every app was very slow on my PII-233. Doug.
Would supporting UTF-8 in OpenBSD change the apparent speed at which it runs on older hardware? Debian Etch does UTF-8 by default and it crawls on my P-II; they told me it was because of UTF-8 and locales support. I changed the locale to C and removed the locales support and it speeded up dramatically. That type of tweaking of a base install isn't as easy in OpenBSD. Doug.
xterm comes with OpenBSD. just run 'xterm' You could try rxvt (which is in packages) if that doesn't work for some reason. -Nick
Thanks. I saw that post before resorting to the list but as it was 3.5 years ago I thought its info had a good chance of being outdated.
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Paolo Ciarrocchi | gmail smtp server and git-send-mail. Is this combination working? |
| Andreas Ericsson | git to libgit2 code relicensing |
| Seth Falcon | git-svn, remote tracking branch question |
| Jesus Sanchez | aterm, rxvt -- memory usage |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Tanvir | Re: Adobe Flash on OpenBSD |
| Juan Miscaro | Re: When will OpenBSD support UTF8? |
| Lennert Buytenhek | Re: using software TSO on non-TSO capable netdevices |
| Auke Kok | [PATCH 3/5] e1000e: Allow TSO to trickle down to VLAN device |
| Johann Baudy | Packet mmap: TX RING and zero copy |
| Jay Cliburn | atl1 warn_on_slowpath help |
