incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Giffuni <>
Subject RE: How to do with glibc-2.1.3 in AOOo?
Date Thu, 15 Sep 2011 21:26:15 GMT
 On Thu, 15 Sep 2011 13:41:39 -0700, "Dennis E. Hamilton" 
 <> wrote:
> Support for w_char matters to me, but that is unrelated to work here.

 The idea is simply to replace some glibc routines in the stubs package.
 If the gnu version supports w_char, then it matters, otherwise using
 the BSD/OpenGroup version is just fine.

> However, there's another place to look.
> I know there are command-line utilities in Subversion releases, so I
> went nosing around.  There is an <apr_lib.h> reference and
> apr_getopt... calls.  I haven't found the library and its source yet,
> but I bet it might have what is needed for Apache OOo.  It might take
> some preprocessor magic to rename back in a custom getopt.h file.
 Nice find!

 I don't see why we should do such preprocessing, we may need to
 replace more stuff than just readdir_r and getopt. If that's the case,
 Then we could just bring in all the Apache Portable Runtime.

 We would be replacing glic with APR, looks good to me but it
 ultimately depends on who will do it.


> I did trace back enough to know that here are some interesting places
> to look further:
> <>
> <>
>  - Dennis
> -----Original Message-----
> From: Pedro Giffuni []
> Sent: Wednesday, September 14, 2011 22:39
> To:
> Subject: Re: How to do with glibc-2.1.3 in AOOo?
>  On Thu, 15 Sep 2011 08:06:40 +0300, Tor Lillqvist <> 
> wrote:
>>> For command line options I think the normal char is enough
>> I don't know what the OOo code actually uses getopt() for (I am
>> pretty
>> sure it is just some build-time tools that actually use it...), but
>> you can be assured that the actual OOo executable(s), for Windows
>> (which presumably *is* the OS you expect most of your users to
>> have?),
>> definitely do need the full original Unicode command line.
>> (Remember that Windows is Unicode-based, all file names and other
>> system interfaces are in UTF-16.)
>> And of course the OOo code itself uses UTF-16 strings almost
>> exclusively.
>  Indeed, I had forgotten:
> :)
>  Cheers,
>  Pedro.

View raw message