This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ready for test/1.5.0] libiconv & gettext (many)


On Tue, Jul 15, 2003 at 08:42:04PM -0400, Charles Wilson wrote:
> Real fix: figure out why sharutils thinks it needs access to that
> variable, and use the public API to do the same thing.  If possible.

shar just uses the value to print it to stdout if the option
--print-text-domain-dir is given.

AFAICS, printing this value is even wrong.  The correct value is the
one returned by a former call to bindtextdomain(), right?  So I'd
guess the correct solution would be to store the return value of
bindtextdomain() and to use this to print:

  localedir = bindtextdomain (PACKAGE, LOCALEDIR);
  ...
  puts (localedir);

Am I right here?  I had not much to do with libintl so far so please
excuse my questions.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]