root/trunk/texinfo/texinfo-4.8a-multibyte-1.patch

Revision 1685, 1.5 kB (checked in by matthew, 2 years ago)

Add patches for the latest version of Texinfo

  • texinfo-4.8/info/info.c

    old new  
    154154#ifdef HAVE_SETLOCALE 
    155155  /* Set locale via LC_ALL.  */ 
    156156  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"); 
    157161#endif 
    158162 
    159163#ifdef ENABLE_NLS 
  • texinfo-4.8/info/man.c

    old new  
    325325      freopen (NULL_DEVICE, "r", stdin); 
    326326      dup2 (pipes[1], fileno (stdout)); 
    327327 
     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 
    328339      execv (formatter_args[0], formatter_args); 
    329340 
    330341      /* If we get here, we couldn't exec, so close out the pipe and 
Note: See TracBrowser for help on using the browser.