06-18-2007 06:01 AM
06-18-2007 06:36 AM
06-18-2007 07:24 AM
The behaviour is the same with the CVI formatting functions.
Additionally I found out that the following code causes a GPF:
int ibuf = 0;
setlocale (LC_ALL, "");
sscanf("0", "%x", &ibuf);
The failure only occurs when sscanf is called with a character buffer of "0" and the "%x" format string.
Looks like a bug to me.
Torsten
06-18-2007 06:59 PM
06-19-2007 12:19 AM
According to the MSDN description (http://msdn2.microsoft.com/en-us/library/6ttkkkhh(VS.80).aspx) for the 'x' type character the argument is "pointer to int". But anyway, the problem also occurs with an unsigned argument. I also doubt this is the root problem but it's another issue that is related to switching locales. The same code works perfectly with the default locale.
Torsten
06-19-2007 12:10 PM
06-29-2007 12:25 PM
06-29-2007 02:40 PM
Dear Luis,
thanks for that. I'm still very interested in this issue . Please keep me informed.
06-29-2007 05:54 PM