This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.6.0-0.11


On 2016-08-20 15:37, Corinna Vinschen wrote:
I uploaded a new Cygwin test release 2.6.0-0.11.
(Still) two interesting changes in this test release:
- Fix the bug reported in
  https://cygwin.com/ml/cygwin/2016-08/msg00357.html
- Add missing nl_langinfo_l functions as reported in
  https://cygwin.com/ml/cygwin/2016-08/msg00349.html
The 2.6.0 release is going to introducing the locale_t datatype, as well
as all functions related to locale_t locales and per-thread locales per
POSIX-1.2008.
So, rather than just providing a single, per-process locale, you can now
create new locales ("newlocale") and set it as locale for the current
thread ("uselocale") or use it directly with one of the new functions
taking a locale_t as parameter (i.e. isalpha_l).
The full list of new interfaces is:
- POSIX:
    newlocale, freelocale, duplocale, uselocale, nl_langinfo_l
    isalnum_l, isalpha_l, isblank_l, iscntrl_l, isdigit_l, isgraph_l,
    islower_l, isprint_l, ispunct_l, isspace_l, isupper_l,
    iswalnum_l, iswalpha_l, iswblank_l, iswcntrl_l, iswctype_l, iswdigit_l,
    iswgraph_l, iswlower_l, iswprint_l, iswpunct_l, iswspace_l, iswupper_l,
    iswxdigit_l, isxdigit_l
    tolower_l, toupper_l, towctrans_l, towlower_l, towupper_l,
    wctrans_l, wctype_l
    strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l
    wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l
    strfmon_l, strftime_l
- GNU extensions:
    isascii_l, toascii_l
    strtol_l, stroll_l, strtoul_l, strtoull_l
    strtod_l, strtofl, strtold_l
    wcstol_l, wcsoll_l, wcstoul_l, wcstoull_l
    wcstod_l, wcstofl, wcstold_l

Hi folks,

Compared lists of locale_t headers and functions for POSIX, Cygwin,
and glibc, attached below for comparison, and found:

* missed string.h(strerror_l) on my first check;
   not sure if you can implement that easily on Windows?

* GNU also supports wchar.h(wcsftime_l) and time.h(strptime_l);

* GNU also defines string.h(str[n]casecmp_l) functions as an extension,
   as well as in POSIX specified strings.h.

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

Attachment: locale_t.txt
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]