root/trunk/texinfo/texinfo-4.9-multibyte-1.patch
| Revision 1840, 1.5 kB (checked in by matthew, 1 year ago) |
|---|
-
texinfo-4.8/info/info.c
old new 154 154 #ifdef HAVE_SETLOCALE 155 155 /* Set locale via LC_ALL. */ 156 156 setlocale (LC_ALL, ""); 157 /* But don't use translated messages in the case when 158 string width and length can differ */ 159 if (MB_CUR_MAX > 1) 160 setlocale(LC_MESSAGES, "C"); 157 161 #endif 158 162 159 163 #ifdef ENABLE_NLS -
texinfo-4.8/info/man.c
old new 325 325 freopen (NULL_DEVICE, "r", stdin); 326 326 dup2 (pipes[1], fileno (stdout)); 327 327 328 if (MB_CUR_MAX > 1) 329 { 330 /* Info has trouble wrapping man output if it contains 331 multibyte characters */ 332 setenv("LANGUAGE", "C", 1); 333 setenv("LANG", "C", 1); 334 setenv("LC_MESSAGES", "C", 1); 335 setenv("LC_CTYPE", "C", 1); 336 setenv("LC_ALL", "C", 1); 337 } 338 328 339 execv (formatter_args[0], formatter_args); 329 340 330 341 /* If we get here, we couldn't exec, so close out the pipe and
Note: See TracBrowser for help on using the browser.
