Re: [dev] [sbase][RFC] Add a simplistic version of tr

From: sin <sin_AT_2f30.org>
Date: Tue, 24 Dec 2013 19:13:06 +0000

On Tue, Dec 24, 2013 at 01:07:10PM -0500, Strake wrote:
> On 24/12/2013, Silvan Jegen <s.jegen_AT_gmail.com> wrote:
> > So I guess the question boils down to whether you would rather use
> > libutf or the standardized, POSIX-locale-dependent wchar.h functions for
> > the UTF-8 conversion. I see one advantage of the wchar.h functions:
> > If we use them we could avoid adding an external dependency to
> > sbase. The disadvantage is the fact that we would depend on the
> > whole posix-locale-thing which seems unnecessarily complicated in
> > places.
>
> Use wchar.h functions and a sane libc, e.g. musl, which has a pure
> UTF-8 C locale, which ISO C explicitly allows [1].

How does this play out in terms of portability on say *BSD systems?
Would be nice to use wchar.h for all of this to avoid dragging in more
code into sbase.
Received on Tue Dec 24 2013 - 20:13:06 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 24 2013 - 20:24:05 CET