This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/15940] strerror() returns useless string "???" in a typical use of PostgreSQL


https://sourceware.org/bugzilla/show_bug.cgi?id=15940

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fweimer at redhat dot com
         Resolution|---                         |WORKSFORME
              Flags|                            |security-

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
I think this is a configuration errorâan LC_MESSAGES setting with an LC_CTYPE
setting which does not allow encoding those messages is broken.  I think I
understand how PostgreSQL ends up with these settings, but this is a special
use case that probably should be addressed within PostgreSQL itself.

Applications should mitigate this by reporting the E* constant in addition to
the translated error message.  This is important for processing bug reports by
those who cannot read the LC_MESSAGES language.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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