From: SourceForge.net <no...@so...> - 2005-06-07 11:16:29
|
Bugs item #1215920, was opened at 2005-06-06 15:09 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1215920&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MinGW >Group: component package Status: Open Resolution: None Priority: 5 Submitted By: Sam Steingold (sds) >Assigned to: Nobody/Anonymous (nobody) Summary: bindtextdomain is broken Initial Comment: bindtextdomain() on NULL second argument crashes: #include <stdio.h> #include <libintl.h> int main (int argc, char *argv[]) { char *ret = bindtextdomain("...", NULL); printf("ret=%s\n",ret ? ret : "nil"); } ==> gcc -mno-cygwin -g td.c -o td.exe -lintl ==> Program received signal SIGSEGV, Segmentation fault. 0x780274df in strrchr () from C:\WINNT\system32\msvcrt.dll (gdb) where #0 0x780274df in strrchr () from C:\WINNT\system32\msvcrt.dll #1 0x60e4122e in libintl_bindtextdomain () from d:\gnu\mingw\bin\libintl3.dll gcc.exe (GCC) 3.4.2 (mingw-special) windows32 winsteingoldlap 2.5.0 2195 i786-pc Intel unknown MinGW GNU ld version 2.15.91 20040904 MinGW-3.2.0-rc-3.exe running at the msys prompt ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2005-06-07 07:16 Message: Logged In: YES user_id=15438 Where is the source of your libintl3.dll? ---------------------------------------------------------------------- Comment By: Bruno Haible (haible) Date: 2005-06-06 16:04 Message: Logged In: YES user_id=5923 This is a bug because the bindtextdomain() documentation says that a NULL argument is allowed. Quoting gettext documentation: "A `NULL' pointer for the DIR_NAME parameter returns the binding associated with DOMAIN_NAME." Quoting glibc documentation: "If the DIRNAME parameter is the null pointer `bindtextdomain' returns the currently selected directory for the domain with the name DOMAINNAME." Quoting the manual page: "If dirname is NULL, the function returns the previously set base directory for domain domainname." ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1215920&group_id=2435 |