From: Kevin Ryde <user42@zip.com.au>
Cc: guile-devel@gnu.org
Subject: Re: setlocale - incorrect error signalled
Date: Sat, 22 Jan 2005 08:49:42 +1100 [thread overview]
Message-ID: <87mzv2e9l5.fsf@zip.com.au> (raw)
In-Reply-To: <200501211315.01753.bruno@clisp.org> (Bruno Haible's message of "Fri, 21 Jan 2005 13:15:01 +0100")
Bruno Haible <bruno@clisp.org> writes:
>
> "No such file or directory" is incorrect.
glibc does end up setting that, it's not just what was left there from
before.
> setlocale() is not required to set errno when it fails,
Yep.
> rv = setlocale (scm_i_to_lc_category (category, 1), clocale);
> if (rv == NULL)
> SCM_SYSERROR; <=== This is the problem.
Could force an errno=EINVAL in there, so that's always the error
given. Or alternately put errno=EINVAL before the setlocale, as a
default if setlocale doesn't change errno. I suppose the former might
be most standards-compliant.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2005-01-21 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-21 12:15 setlocale - incorrect error signalled Bruno Haible
2005-01-21 21:49 ` Kevin Ryde [this message]
2005-01-23 21:57 ` Kevin Ryde
2005-01-24 15:19 ` Bruno Haible
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mzv2e9l5.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-devel@gnu.org \
/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).