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.
| FUJITA Tomonori | Re: Integration of SCST in the mainstream Linux kernel |
| Arnd Bergmann | Re: [RFC][PATCH 1/4] checkpoint-restart: general infrastructure |
| Matthew Wilcox | Multiple MSI, take 3 |
| Alok Kataria | Use CPUID to communicate with the hypervisor. |
git: | |
| Li Frank-B20596 | why not TortoiseGit |
| Miklos Vajna | [rfc] git submodules howto |
| Linus Torvalds | Re: fatal: Out of memory, malloc failed |
| lukass | [RFC] Convert builin-mailinfo.c to use The Better String Library. |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
| Wenji Wu | A Linux TCP SACK Question |
| Marcel Holtmann | Bluetooth fixes for 2.6.27 |
| David Miller | Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels. |
| Chris | Prolific USB-Serial Controller |
| Nick Guenther | Re: how to clear dmesg outpout |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Julien TOUCHE | setting up ssh tunnel/vpn |
