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

Re: glibc/gettext inconsistancy ? & local .mo problem



Philippe Ribet wrote:
> #include <libintl.h>
> #include <locale.h>
> #include <stdio.h>
>
> int main(){
>   bindtextdomain("test","");
>   textdomain("test");
>   printf(gettext("hello\n"));
>   return 0;
> }

Try this patch:

--- orig.test.c	Sat Apr 27 11:23:38 2002
+++ test.c	Sat Apr 27 11:23:54 2002
@@ -1,10 +1,11 @@
 #include <libintl.h>
 #include <locale.h>
 #include <stdio.h>

 int main(){
+  setlocale (LC_ALL, "");
   bindtextdomain("test","");
   textdomain("test");
   printf(gettext("hello\n"));
   return 0;
 }


-- 
To UNSUBSCRIBE, email to debian-testing-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: