#1970: bug in glibc-2.3.6?
--------------------+-------------------------------------------------------
 Reporter:  Spinal  |        Owner:  [email protected]
     Type:  defect  |       Status:  closed                       
 Priority:  high    |    Milestone:  6.2                          
Component:  Book    |      Version:  6.3                          
 Severity:  major   |   Resolution:  invalid                      
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by [EMAIL PROTECTED]):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 You simply did not read the manual page for setlocale.

 The correct code is:

 {{{
 #include <stdlib.h>
 #include <stdio.h>
 #include <locale.h>
 main(){
         setlocale(LC_ALL, "");
         printf("MB_CUR_MAX=%d\n", MB_CUR_MAX);
         printf("Current locale: %s\n", setlocale( LC_ALL, NULL ) );
         printf("Current LC_CTYPE: %s\n", setlocale( LC_CTYPE, NULL ) );
 }
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1970#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to