public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.6.0-0.3
Date: Thu, 28 Jul 2016 20:00:00 -0000	[thread overview]
Message-ID: <20160728195658.GD26311@calimero.vinschen.de> (raw)
In-Reply-To: <9ce2e1fc-5bb5-923e-3c86-9331f33a5bb7@cornell.edu>

[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]

On Jul 28 15:44, Ken Brown wrote:
> On 7/27/2016 4:33 PM, Corinna Vinschen wrote:
> > On Jul 27 10:58, Ken Brown wrote:
> >> On 7/27/2016 8:36 AM, Corinna Vinschen wrote:
> >>> Hi Cygwin developers and maintainers,
> >>> Hi everyone else,
> >>>
> >>>
> >>> I uploaded a new Cygwin test release 2.6.0-0.3.
> >>>
> >>> Supposed to fix the problems reported in
> >>> https://cygwin.com/ml/cygwin/2016-07/msg00306.html
> >>
> >> This is now fixed.  Here's another problem, with a very easy test case:
> >>
> >> $ locale -a
> >> Segmentation fault (core dumped)
> > 
> > Confirmed.  I missed to set a variable in case of the "th_TH.TIS-620"
> > locale or the "thai" locale alias.  I'll build a 0.4 tomorrow.
> 
> This is fixed in 0.4, and that's the last of the regressions that I've
> found by running the emacs test suite.
> 
> I built and tested texlive with no problem.
> 
> I also tried to build icu, but there are some glitches due to the new
> POSIX guard in /usr/include/locale.h.  For example: [...]
> 
> The errors go away if I move the prototypes of setlocale and
> localeconv outside of the new POSIX guard.

Ouch, right, they don't belong there.  What was I thinking?

Proposing this patch, can you give it a quick test?

diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h
index f74e9c5..6b3b788 100644
--- a/newlib/libc/include/locale.h
+++ b/newlib/libc/include/locale.h
@@ -72,26 +72,26 @@ char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *));
 struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
 
 #if __POSIX_VISIBLE >= 200809
-
 locale_t _newlocale_r (struct _reent *, int, const char *, locale_t);
 void _freelocale_r (struct _reent *, locale_t);
 locale_t _duplocale_r (struct _reent *, locale_t);
 locale_t _uselocale_r (struct _reent *, locale_t);
+#endif /* __POSIX_VISIBLE >= 200809 */
 
 #ifndef _REENT_ONLY
 
 char *_EXFUN(setlocale,(int, const char *));
 struct lconv *_EXFUN(localeconv,(void));
 
+#if __POSIX_VISIBLE >= 200809
 locale_t newlocale (int, const char *, locale_t);
 void freelocale (locale_t);
 locale_t duplocale (locale_t);
 locale_t uselocale (locale_t);
+#endif /* __POSIX_VISIBLE >= 200809 */
 
 #endif /* _REENT_ONLY */
 
-#endif /* __POSIX_VISIBLE >= 200809 */
-
 _END_STD_C
 
 #endif /* _LOCALE_H_ */


Thanks (A LOT),
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-07-28 19:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27 12:46 Corinna Vinschen
2016-07-27 14:58 ` Ken Brown
2016-07-27 20:34   ` Corinna Vinschen
2016-07-28 19:57     ` Ken Brown
2016-07-28 20:00       ` Corinna Vinschen [this message]
2016-07-28 20:36         ` Ken Brown
2016-07-29 10:38           ` Corinna Vinschen
2016-07-27 18:29 ` Denis Excoffier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160728195658.GD26311@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).