- From: lpsmith at spod-central.org (Lucian Smith)
- Subject: [cellml-dev] compiling Telicims
- Date: Wed, 29 Dec 2010 06:14:01 +0000
* Andrew Miller <ak.miller at auckland.ac.nz> [2010-12-29 01:13] writes:
>
>
The valgrind message means that mbstowcs is writing a 32 bit character
>
at offset 184 of a 186 byte block of memory (invalid, since that
>
involves writing past the end of the block).
>
>
186 isn't a multiple of 4 - so to guess at what could be wrong: have you
>
used a compile flag for 16 bit wide characters (e.g. -fshort-wchars),
>
but linked against a glibc version that uses 32-bit wide characters (the
>
default for modern glibc versions)? As Mozilla is built to use 16-bit
>
wide characters, it is quite likely you have -fshort-wchars on, but if
>
linking with Mozilla was the only reason you turned it on, you don't
>
need it any more, and turning it off should fix that issue.
Aha! Yes, that was it exactly. Without -fshort-wchars, 'makeUTF16' works
as expected. Thanks!
-Lucian
Archive powered by MHonArc 2.6.18.