[gnuwin32 - Help] bindtextdomain() and LOCALEDIR in Win32 env?

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4882216
By: simcutie

I am writing some utility program using GNUWin32 libraries, libgw32.a and libintl.lib
to contribute to GNU Win32 collection. I'd like to ask some question about message
catalog path handling of NLS routine bindtextdomain(pkg_name, locale_dir). How
the bindtextdomain() finds message catalog directory in PC Windows environment?

In Unix/Linux environment, the usual message catalog directory is semi-fixed
like "/usr/share/locale" and with help of autoconf it is found at compile time.
But in Win32 environment and binary distribution, the program and message catalog
data may be installed anywhere in directory structures, not just "C:\Program
File\Gnu Win32\share\locale\".

But many GNU program that uses bindtextdomain() determines LOCALEDIR argument
at compile time. So how can I cope with this problem without using autoconf
and re-compile by end user? I don't want user to set NLS_PATH environment variable
manually and use it as the bindtextdomain argument. Many GNU Win32 program works
well with NLS without NLS_PATH set.

How this problem is handled by GNU Win32 distributions? Should I read Windows
registry info about GNU Win32 install path and use it or get executable path
and search message catalog directories in run-time? then how about binary only
ZIP distribution?

Apart from this problem, is there any established convention of GNU Win32
distribution to choose package name argument of bindtextdomain()? If any, I
will follow that. May I use name like "GNUWin32-supplement"?


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.