Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-02

libc bug on Linux

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Linux, fpc from svn.

program pokus;
uses Libc;
begin
  writeln(CODESET,', ', nl_langinfo(CODESET));
end.

If I compile with Borland dcc, then I get right answer: 14, ISO-8859-2
but with fpc I get:
14, ANSI_X3.4-1968

If I try to modify program to eliminate the rtl errors:

program pokus;
const CODESET = 14;
function nl_langinfo(__item: Integer): pchar;cdecl; external 'libc.so.6' name 'nl_langinfo';
begin
  writeln(CODESET,', ', nl_langinfo(CODESET));
end.

Result is the same as above.

Some linking problem ???

Ing. Petr Kristan . EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice tel: +420 466335223 Czech Republic (Eastern Europe) fax: +420 466510709

Reply by email