[fpc-devel] Linux ELF linking problem
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Wed Mar 19 11:50:29 CET 2008
    
    
  
On 19 Mar 2008, at 11:20, petr.kristan at epos.cz wrote:
> Linux i386 system, fpc from svn rev 10506.
Did this work before? If so, between which and which revision did it  
stop working?
> Simple program for retrive system charset:
>
> program b;
> uses
>  Libc;
> begin
>   writeln(nl_langinfo(CODESET));
> end.
>
> Prints: ANSI_X3.4-1968
You are normally required to initialise the locale yourself before  
calling nl_langinfo(CODESET), by calling setlocal(LC_ALL,'') (at least  
on non-Linux this is always needed).
Jonas
    
    
More information about the fpc-devel
mailing list