diff options
author | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-04-13 19:44:51 +0000 |
---|---|---|
committer | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-04-13 19:44:51 +0000 |
commit | 58c7536f3a07e8480f9b8d76cca526075ba2c902 (patch) | |
tree | 75d648951f45a8ec7a1d3b2af0485d6c5ff12fe2 /packages/rtl-extra | |
parent | dd735bb0d39497ce6331956191fef79f59659cd1 (diff) | |
download | fpc-58c7536f3a07e8480f9b8d76cca526075ba2c902.tar.gz |
* Reverted revision 30575 (forgor -depth=immediate
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@30576 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/rtl-extra')
-rw-r--r-- | packages/rtl-extra/src/unix/clocale.pp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/packages/rtl-extra/src/unix/clocale.pp b/packages/rtl-extra/src/unix/clocale.pp index d5fbec965b..e78c571bd7 100644 --- a/packages/rtl-extra/src/unix/clocale.pp +++ b/packages/rtl-extra/src/unix/clocale.pp @@ -106,41 +106,8 @@ procedure GetFormatSettings(out fmts: TFormatSettings); end; function GetLocaleChar(item: cint): char; - var - p: PChar; begin - p := nl_langinfo(item); - Result := p^; - if (ord(Result)>127) and (DefaultSystemCodePage=CP_UTF8) then begin - Result := #0; - case p^ of - #$C2: - case p[1] of - #$A0: Result:=' '; // non breakable space - #$B7: Result:='.'; // middle stop - end; - #$CB: - if p[1]=#$99 then Result:=''''; // dot above, italian handwriting - #$D9: - case p[1] of - #$AB: Result:=','; // arabic decimal separator, persian thousand separator - #$AC: Result:=''''; // arabic thousand separator - end; - #$E2: - case p[1] of - #$80: - case p[2] of - #$82, // long space - #$83, // long space - #$89, // thin space - #$AF: // narrow non breakable space - Result := ' '; - #$94: Result := '-'; // persian decimal mark - end; - #$8E: if p[2]=#$96 then Result := ''''; // codepoint 9110 decimal separator - end; - end; - end; + GetLocaleChar := nl_langinfo(item)^; end; function SkipModifiers(const s: string; var i: integer): string; |