CH_DISPLAY and gettext

simo idra at samba.org
Thu Jun 23 14:19:16 MDT 2011


On Thu, 2011-06-23 at 22:04 +0200, Michael Adam wrote:
> Stefan (metze) Metzmacher wrote:
> > Am 23.06.2011 19:20, schrieb Jeremy Allison:
> > > On Fri, Jun 24, 2011 at 02:16:01AM +0900, TAKAHASHI Motonobu wrote:
> > >>
> > >> That's what I (and my friends) insisted several years ago:
> > >>   http://lists.samba.org/archive/samba-technical/2004-March/034638.html
> > >>   http://lists.samba.org/archive/samba-technical/2004-March/034742.html
> > >>
> > >> Internal charset should be fixed. UTF-8 is acceptable but UTF-16 may
> > >> be better because UTF-16 is more suitable for string manipulation than
> > >> UTF-8.
> > > 
> > > I disagree with that. UTF-16 is just as bad for string manipulation
> > > as UTF-8, due to compose characters. UTF-16 isn't a fixed length
> > > representation either.
> > 
> > And UTF-16 doesn't work as a native C String (char *).
> > We should really try to just use UTF-8 internally.
> 
> I am really glad that there seems to be some support for my idea.
> And also that it has been around for quite some time.
> So I am feeling less freaky to bring it up (again) ;-)
> 
> I will think about more details...

Having CH_UNIX any different than utf8 is needed exclusively for dealing
with the filesystem. Using anything but utf-8 in any other component is
just asking for trouble.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list