Austin Group Defect Tracker

Aardvark Mark IV


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
duplicate of 0001004Closedajosey 1003.1(2008)/Issue 7 Make *_l() complete? 

-  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.)

- Issue History
Date Modified Username Field Change
2016-04-29 05:39 daurnimator New Issue
2016-04-29 05:39 daurnimator Name => Daurnimator
2016-04-29 05:39 daurnimator Section => strtod_l
2016-04-29 05:39 daurnimator Page Number => 0
2016-04-29 05:39 daurnimator Line Number => 0
2016-04-29 05:44 EdSchouten Note Added: 0003184
2016-04-29 05:55 EdSchouten Note Edited: 0003184
2016-04-29 06:05 daurnimator Note Added: 0003185
2016-04-29 06:09 EdSchouten Relationship added duplicate of 0001004
2016-04-29 06:16 Don Cragun Interp Status => ---
2016-04-29 06:16 Don Cragun Status New => Closed
2016-04-29 06:16 Don Cragun Resolution Open => Duplicate


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker