Bug 18018 – Locale not available when linking against snn.lib

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-11-28T18:05:24Z
Last change time
2024-12-07T13:37:45Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu
Moved to GitHub: dmd#17353 →

Comments

Comment #0 by rumbu — 2017-11-28T18:05:24Z
auto p = setlocale(LC_NUMERIC, "de-DE"); writeln(p ? fromStringz(p) : "FAILURE"); auto lc = localeconv(); writefln("Decimal separator: '%s'", *lc.decimal_point); writefln("Thousand separator: '%s'", *lc.thousands_sep); writefln("%f", 1234567.1234); When using OMF format (linking against snn.lib) outputs: FAILURE Decimal separator: '.' Thousand separator: ' ' 1234567.123400 When using COFF format x86/64 (linking against Microsoft C Runtime) outputs: de-DE Decimal separator: ',' Thousand separator: '.' 1234567,123400
Comment #1 by robert.schadek — 2024-12-07T13:37:45Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17353 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB