This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] system_error, round one
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 11 May 2007 15:57:21 -0700
- Subject: Re: [v3] system_error, round one
- References: <46448CB7.1090805@redhat.com>
- You have to use strerror_r() if available since some strings are
dynamically created.
- why has this class no explicit association with a locale? It should
have. strerror() and strerror_r() provide translated strings based on
the global locale
- if such a locale is added as for many other classes, then use
strerror_l() which is available in glibc and will be available in all
future POSIX systems.
- you shouldn't hardcode the highest error number. If you really need
that information use the _sys_nerr variable which most Unix systems provide.
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â