[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] Win32 msmtp and NLS LOCALEDIR



On Sat, Nov 12, 2016 at 11:40:03AM +0100, Martin Lambers wrote:

> That is the problem. NLS support assumes that the localedir is
> fixed system wide, and therefore it can be set at compile time.
> 
> However, this is not usually done on Windows. On Windows, a program is
> typically put into its own directory along with all its data files, e.g.
> something like 'c:\programs\msmtp' with a subdirectory 'locale'. This
> means that on Windows, msmtp should not use a directory fixed at
> compile time, but rather a directory relative to the location of the
> binary, e.g. 'DIR_OF_MSMTP_EXE\locale'. Then, DIR_OF_MSMTP_EXE must be
> found at runtime rather than compile time.
> 
> Programs that support this are known as relocatable in the GNU
> gettext documentation. I never got around to make msmtp relocatable.
> Instead, I just used './configure --disable-nls' for Windows
> binaries... 

I will follow your own example then and disable NLS support in my own
copy. As this windows build of msmtp is simply intended to allow
'reply via email' from within the Windows version of slrn my needs are
not that great anyway. And I suspect these needs will be
comprehensively met by the build I have already achieved with msmtp.

I have a slightly longer term project of getting msmtp.mk accepted in
MXE but I am still working away at the syntax. This should make life a
little easier for others who are after a Windows build in the future..

Thanks for your assistance,

Andrew
-- 
You think that's air you're breathing now?