:


From: Ales Popov 

 NM)                      libc-5.2.18, ld.so-1.7.14...
     ^^^^^^^^^^  !
     CD Linux.Yes    .
    , -     :

=== Begin 11.r ===
Eugene Shakhtarin 

 koi8-r   libc 5.2.18 (ELF).
  Linux kernel 1.3.57, gcc 2.7.2.

 1)    locale  :
http://es-sun2.fernuni-hagen.de/public/mirrors/GCC-experimental/Intro

2)  charmap  locale  :
http://www.dkuug.dk/JTC1/SC22/WG15/

3)   libc 5.2.18  libc/locale/ctype.c ,
  ,   (is_upper ? toupper_done : tolower_done)
|=  BIT  (token);    BIT  (token)      0   
  1    tolower_done   0,  
tolower  . ctype.c     
 tolower  .

      libc/locale/ctype.c:
/*
static unsigned short toupper_done = 0;
static unsigned short tolower_done = 0;
 */
static unsigned toupper_done = 0;
static unsigned tolower_done = 0;

  :
*** ctype.c.orig        Tue Jan 16 19:02:43 1996
--- ctype.c     Tue Jan 16 19:03:23 1996
***************
*** 54,59 ****
--- 54,63 ----
  /* Remember which class or conversion is already done.  */
  static unsigned short class_done = 0;
+ /*
  static unsigned short toupper_done = 0;
  static unsigned short tolower_done = 0;
+  */
+ static unsigned toupper_done = 0;
+ static unsigned tolower_done = 0;

  #define SYNTAX_ERROR \

 
http://eugene.mplik.ru/pub/Linux/utils/nls/locale/libc-5.2.18.fix/
ctype.c -- 6534   ctype.c
localedef.gz -- 53833 ,      -g

4)  localedef.c ( locale.c):
make SHARED= programs

5)  libc 5.2.18  LC_COLLATE   .

6)        locale  koi8-r  
   .
 http://www.dkuug.dk/JTC1/SC22/WG15/
    koi8-r  :
 http://eugene.mplik.ru/pub/Linux/utils/nls/locale/share/nls/charmap/KOI8-R
 http://eugene.mplik.ru/pub/Linux/utils/nls/locale/share/nls/locale/ru_RU

      ISO 10646 (Unicode),
RFC-1489  
http://www.dkuug.dk/JTC1/SC22/WG15/

  KOI8-R  ru_RU      
   .      
,     ,  
     -      
.

7)    locale  koi8-r.
7.1)  
mkdirhier /usr/share/nls/charmap
mkdir /usr/share/nls/locale
mkdir /usr/share/locale

7.1)   KOI8-R  ru_RU  
/usr/share/nls/charmap/KOI8-R
/usr/share/nls/locale/ru_RU

7.2)    koi8-r   /usr/share/locale/koi8-r/
localedef -c -i /usr/share/nls/locale/ru_RU -f KOI8-R koi8-r

            koi8-r,  
 ,  
 http://eugene.mplik.ru/pub/Linux/utils/nls/locale/share/locale/koi8-r/

8)    koi8-r.
8.1)    
export LANG=koi8-r

  ,    libc 5.2.18   locale,
   .

8.2)      
 setlocale (. man setlocale), :
#include 
#include 
main()
{
int c, C;
setlocale(LC_ALL, "");

c='';
C=toupper(c);
printf("%c\n", C);

C='';
c=tolower(C);
printf("%c\n", c);

}

Last-modified: Sun, 18 Aug 1996 16:43:32 GMT
: