Jean-Marc Lasgouttes wrote: >>>>>> "Michael" == Michael Gerz >>>>>> <[EMAIL PROTECTED]> writes: > > Michael> Comments? It should (hopefully) not affect behaviour on other > Michael> platforms. BTW: According to the man pages, gettext ALWAYS > Michael> returns a reasonable string. There is no real need to check > Michael> for NULL.
What do you mean with "gettext"? In case you mean setlocale my manpage disagrees: RETURN VALUE A successful call to setlocale() returns an opaque string that corresponds to the locale set. This string may be allocated in static storage. The string returned is such that a subsequent call with that string and its associated category will restore that part of the process's locale. The return value is NULL if the request cannot be honored. > So, what does work and what does not with the patch? Do you get > translated document strings? I can't imagine that it fixes translation. The patch simply fixes a crash (which could also occcur on unix systems with improperly set up locale settings), and should be applied IMO. Georg