Anonymous | Login | 2024-05-05 09:02 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001049 | [1003.1(2013)/Issue7+TC1] Base Definitions and Headers | Editorial | Enhancement Request | 2016-04-29 05:39 | 2016-04-29 06:16 | ||
Reporter | daurnimator | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Duplicate | ||||
Status | Closed | ||||||
Name | Daurnimator | ||||||
Organization | |||||||
User Reference | |||||||
Section | strtod_l | ||||||
Page Number | 0 | ||||||
Line Number | 0 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0001049: Standardise strtod_l and friends | ||||||
Description |
Most string to number parsing functions are locale dependant. Many libcs already have variants to the existing functions (such as strtod) that in addition to the usual arguments, take a locale. Existing implementations: - musl - glibc - darwin (Mac OSX) - freebsd - netbsd - Microsoft (since MSVC2005) (with prefix) Infact, often `strtod` is **already** implemented in terms of a strtod_l function. |
||||||
Desired Action |
The following definitions should be added in stdlib.h: - atof_l - atoi_l - atol_l - atoll_l - mblen_l - mbstowcs_l - mbtowc_l - strtod_l - strtof_l - strtol_l - strtold_l - strtoll_l - strtoq_l - strtoul_l - strtoull_l - strtouq_l - wcstombs_l - wctomb_l Each with the same signatures as their non '-l' suffixed equivalents, except for an added final `locale_t` argument. |
||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Relationships | |||||||
|
Notes | |
(0003184) EdSchouten (updater) 2016-04-29 05:44 edited on: 2016-04-29 05:55 |
This bug would be a duplicate of http://austingroupbugs.net/view.php?id=1004 [^] , right? |
(0003185) daurnimator (reporter) 2016-04-29 06:05 |
> This bug would be a duplicate of http://austingroupbugs.net/view.php?id=1004 [^] [^] , right? Yes. I believe so (search didn't manage to find it/I was using the wrong terms.) |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |