Re: UTF-8 and locale support

2010-01-24 Thread Jordi Beltran Creix
2010/1/20 Jordi Beltran Creix :
> For the record, a few months ago I grabbed a FreeBSD source tree and
> grafted its locale and multibyte support(I think theirs is the best)
> to (then current)OpenBSD libc.

I have uploaded the hack here just in case someone is interested.
If you are not interested you don't need to let me know, thank you. I
know it sucks too.
http://code.google.com/p/obsdfbsdi18n/



Re: UTF-8 and locale support

2010-01-19 Thread Jordi Beltran Creix
2010/1/18 Toni Mueller :
> This feature will be available once someone sits down and writes the
> code. I though I was that someone, several weeks/months ago, but
> haven't made any progress. Instead, Jordi Beltran Creix has, to the
> best of my knowledge, done groundbreaking work in this direction.
>
>
> Kind regards,
> --Toni++
>
>

More like system-breaking work :)

For the record, a few months ago I grabbed a FreeBSD source tree and
grafted its locale and multibyte support(I think theirs is the best)
to (then current)OpenBSD libc.

Grafted is the word. All the character  data needed came from a
FreeBSD base package and I made no effort to port the software
required to compile it on OpenBSD. There were also a few incompatible
datatypes, defines, structures and changes in library sizes that I
just walked around.

All in all, locale support is pretty encapsulated in both systems, I
got the grafted library to compile using symlinks to the unchanged
libc. Once it compiled, GTK+ apps, IMMs, perl, etc. all started
supporting multiple encodings and localized libc error messages with
no apparent problem.

Not groundbreaking at all, but I think doing it properly may  be the
shortest path to good character and locale support on OpenBSD.



Re: UTF-8 and locale support

2010-01-18 Thread Toni Mueller
Hello,

On Thu, 17.12.2009 at 12:43:33 +0100, Artur Litwinowicz  
wrote:
>I would like to ask about potential plans regarding UTF-8 in locales
> support.

;}

>The problem starts when I am trying to create PostgreSQL cluster

The problem manifests itself on many other occasions as well.

> Please let me know if is any solution for this problem exists or in the
> future that feature will be available :)

This feature will be available once someone sits down and writes the
code. I though I was that someone, several weeks/months ago, but
haven't made any progress. Instead, Jordi Beltran Creix has, to the
best of my knowledge, done groundbreaking work in this direction.


Kind regards,
--Toni++



UTF-8 and locale support

2009-12-17 Thread Artur Litwinowicz
Hello,
   I would like to ask about potential plans regarding UTF-8 in locales
support.
In details (now on my box runs 4.6 release) I am looking
in /usr/share/locale for xx_XX.UTF-8 but all catalogs with UTF-8 are
empty - current release is not supporting that encoding ?

   The problem starts when I am trying to create PostgreSQL cluster
with: --locale=pl_PL.UTF8 (cluster creation program says that there is
no locale support) - without that it is not possible to sort properly
data in SQL queries :(

Please let me know if is any solution for this problem exists or in the
future that feature will be available :)

Best regards,
Artur

ps. OpenBSD is for me the BEST system on the World and I do not like
to use any other :)