Re: new modules for Unicode normalization

2009-02-21 Thread Bruno Haible
Hi Jim, > That sounds like it'd make a fine addition, and you're welcome to > contribute it. Thanks for the invitation. But I am already busy in too many areas. I leave this small project to someone familiar with coreutils and its coding guidelines. Bruno

Re: [PATCH] Add 'safe-alloc' module

2009-02-21 Thread Bruno Haible
David Lutterkort wrote: > > OK to commit that? > > Yes, absolutely. Committed. Another tiny change that I forgot to mention: A unit test (or any other program) needs an explicit 'return 0;' at the end of the main() function. In C99 and C++, when there is no return statement at the end of main(),

Re: new modules for Unicode normalization

2009-02-21 Thread Pádraig Brady
Jim Meyering wrote: > Bruno Haible wrote: > ... >> With this, you can easily create a program that reads UTF-8 from stdin and >> outputs it as canonicalized UTF-8 on stdout: >> - create a "stream" that takes a Unicode character and outputs it to >> stdout. (Gnulib module 'unistr/u8-uctomb'.)

Re: new modules for Unicode normalization

2009-02-21 Thread Jim Meyering
Bruno Haible wrote: ... > With this, you can easily create a program that reads UTF-8 from stdin and > outputs it as canonicalized UTF-8 on stdout: > - create a "stream" that takes a Unicode character and outputs it to > stdout. (Gnulib module 'unistr/u8-uctomb'.) > - Wrap a Unicode normali

Re: [PATCH] Add 'safe-alloc' module

2009-02-21 Thread David Lutterkort
On Sat, 2009-02-21 at 11:42 +0100, Bruno Haible wrote: > Hi David, > > > Attached is an incremental patch with those changes. > > Thanks. With the confirmation by Karl that the copyright is assigned to the > FSF > both for Dan Berrange and for you, I've added your module, in two commits: > > >

Re: Typo/oddity in realpath.texi

2009-02-21 Thread Reuben Thomas
On Fri, 20 Feb 2009, Bruno Haible wrote: Reuben Thomas wrote: "Gnulib provides a module @samp{canonicalize-lgpl}" since there's a canonicalize and a canonicalize-lgpl module, shouldn't it just say "a module @samp{canonicalize}", and users can make the usual guess that there might be an LGPL ve

Re: new modules for Unicode normalization

2009-02-21 Thread Bruno Haible
Hi Pádraig, Bo, On 2008-05-08, when I mentioned the possibility to have a filter program that reads from standard input and writes the canonicalized output to standard output, you liked this idea:

new modules for Unicode normalization

2009-02-21 Thread Bruno Haible
Planned for a long time. I've added modules for Unicode normalization forms. Here is the API, the ChangeLog entry (without the tests), and the core of the code. For the rest, please look in lib/uninorm/*. lib/uninorm.h /* Normaliza

Re: [PATCH] Add 'safe-alloc' module

2009-02-21 Thread Bruno Haible
Hi David, > Attached is an incremental patch with those changes. Thanks. With the confirmation by Karl that the copyright is assigned to the FSF both for Dan Berrange and for you, I've added your module, in two commits: 2009-02-21 David Lutterkort Tests for module 'safe-alloc'.