Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Boris Aksyonov                       2:5049/64      24 Jul 2000  10:01:35
 To : Denis Shaposhnikov
 Subject : Re: strings: koi8-r
 -------------------------------------------------------------------------------- 
 
 DS> Это так и должно быть, что strings не понимает locale?
 
     я сделал просто:
 
 - --- strings.c.orig      Mon Jul 24 09:56:14 2000
 +++ strings.c   Mon Jul 24 09:57:01 2000
 @@ -88,7 +88,7 @@
         u_char *bfr;
         char *file, *p;
  
 -       (void) setlocale(LC_CTYPE, "");
 +       (void) setlocale(LC_ALL, "");
  
         /*
          * for backward compatibility, allow '-' to specify 'a' flag; no
 
 :) все стало работать как надо 
 
 DS> [dsh@neva dsh]$ { echo 'тест'; echo test } > /tmp/123
 DS> [dsh@neva dsh]$ cat /tmp/123
 DS> тест
 DS> test
 DS> [dsh@neva dsh]$ LC_ALL=ru_RU.KOI8-R strings /tmp/123
 DS> test
 DS> [dsh@neva dsh]$ 
 
 DS> -- 
 DS> DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet
 DS> mailto:dsh@vlink.ru http://neva.vlink.ru/~dsh
 DS> Key fingerprint = 46 C8 1B 3B 15 1F 64 B0  38 0B 28 CE B0 75 7B E9
 
 --- tin/1.5.5-20000613 ("Lucretia") (UNIX) (FreeBSD/4.0-RELEASE (i386))
  * Origin: Communication Magistral 2 (2:5049/64.0)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: strings: koi8-r   Boris Aksyonov   24 Jul 2000 10:01:35 
Архивное /ru.unix.bsd/24360710aca49.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional