Author srid
Recipients loewis, srid
Date 2009-06-29.22:46:59
SpamBayes Score 6.07938e-05
Marked as misclassified No
Message-id <>
Hello Martin,

My apologies for responding so late.

[Martin] Also, please confirm a few things: a. configure has detected 
that your system has mbrtowc (...)

# Yes, as can be seen in the attached config.log

[Martin] (...) b. configure's analysis is correct, i.e. your system has 
mbrtowc indeed.

# Yes, `mbrtowc` is present as the following C programs compiles and 
runs successfully:

  #include <wchar.h>
  int main()
    mbrtowc(NULL, "", 1, NULL);

[Martin] does your system provide the mbstate_t type? if so, what 
header file needs to be included?

`mbstate_t` seems to exist in /usr/include/wchar.h .. however, 
including <wchar.h> does not seem to work:

bash-2.04$ cc +DD64 -Ae -D_REENTRANT +Z --version              
cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
bash-2.04$ cat test.c
#include <wchar.h>
int main()
  mbstate_t foo;
  mbrtowc(NULL, "", 1, NULL);
bash-2.04$ cc test.c -o test                     
Error 419: "test.c", line 6 # 'mbstate_t' is used as a type, but has 
not been defined as a type.
      mbstate_t foo;
bash-2.04$ aCC test.c -o test
Error 403: "test.c", line 8 # Undeclared variable 'mbrtowc'. Perhaps 
'mbtowc' as in "int mbtowc(wchar_t *,const char *,unsigned long)" ["/
usr/include/stdlib.h", line 169] was intended.
      mbrtowc(NULL, "", 1, NULL);

Date User Action Args
2009-06-29 22:47:04sridsetrecipients: + srid, loewis
2009-06-29 22:47:04sridsetmessageid: <>
2009-06-29 22:47:01sridlinkissue5999 messages
2009-06-29 22:47:00sridcreate