Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2009 15:13:12 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Alexander Churanov <alexanderchuranov@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Gabor Kovesdan <gabor@freebsd.org>
Subject:   Re: SoC 2009: BSD-licensed libiconv in base system
Message-ID:  <20090506131312.GA48658@owl.midgard.homeip.net>
In-Reply-To: <3cb459ed0905060328n4ad05d98xb5ba0c2e01d356e2@mail.gmail.com>
References:  <20090427183836.GA10793@zim.MIT.EDU> <49F5FE45.2090101@freebsd.org> <20090427193326.GA7654@britannica.bec.de> <20090427194904.GA11137@zim.MIT.EDU> <49F6C7A1.6070708@FreeBSD.org> <20090428122225.GA2862@britannica.bec.de> <24e9a86bf5995ba551db8f27aa204191.squirrel@webmail.kovesdan.org> <20090428180624.GA2223@britannica.bec.de> <4A00B897.809@FreeBSD.org> <3cb459ed0905060328n4ad05d98xb5ba0c2e01d356e2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 06, 2009 at 02:28:51PM +0400, Alexander Churanov wrote:
> Gabor, Joerg,
> 
> I am currently working on UTF-8 support in syscons and highly
> interested in making FreeBSD using UTF-8 out of box.
> 
> There is my $0.02:
> 
> 1) Why discuss UCS-4 at all? UTF-32 is alreay in place. SImple,
> standardized, fixed-width and stateless.

UCS-4 and UTF-32 are, for most purposes, just two different names
for the same encoding.


> 2) I'm against using wchar_t internally, because C language standard
> does not require that a wchar_t variable can hold an UTF-32 code
> point.

The C standard has very few requirements on wchar_t.  It is up to each
implementation to decide how wchar_t is defined.
There is nothing which prevents the FreeBSD project from deciding
that on FreeBSD wchar_t is always 32 bits wide, which can then be relied
upon in FreeBSD-specific code.  It is not like somebody else will change
the relevant include files without warning.


> 3) Please, give an example of character that does not fit into UCS-4.
> I'll check whether it fits into UTF-32. I expect that any character
> fits into a single UTF-32 code point.
> 
> Sincerely,
> Alexander Churanov
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090506131312.GA48658>