On 2015-09-10 14:08, Martin Schreiber wrote:
> Then the question: why does it not return the actual codeset?
It seems the problem lies with the Object Pascal code. A minor tweak the
example C program from the FreeBSD forum proves this.
The following C test program returns the expected value on my system.
=============================
/* Compile with "gcc48 -W -Wall -o langinfo langinfo_test.c" */
#include <stdio.h>
#include <langinfo.h>
#include <locale.h>
int main()
{
setlocale(LC_ALL,"");
printf("%s\n", nl_langinfo(CODESET));
return 0;
}
=============================
And the output...
[tmp]$ gcc48 -W -Wall -o langinfo langinfo_test.c
[tmp]$ ./langinfo
UTF-8
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk