strange Win32 localeconv() results

From: OLeary, Sean (NJ) (oleary@msmail.awii.com)
Date: Thu Oct 28 1999 - 16:51:24 EDT


I'm trying to retrieve the current struct lconv data from Windows and the
results I'm seeing are puzzling. It seems that the struct is initialized
mostly with null string pointers and CHAR_MAX (value 0x7F) bytes. Anybody
know why Win32 is not initializing this struct with meaningful data?

Thanks,
Sean O'Leary
oleary@awii.com
Automated Wagering International
973-594-5077

Here's the code:
  struct lconv * lconvP;

  setlocale( LC_ALL, "EN_US" );
  lconvP = localeconv();

Here's the settings I'm seeing:
18: /* pointer to original static to avoid freeing */
19: char __lconv_static_decimal[] = ".";
20: char __lconv_static_null[] = "";
21:
22: /* lconv settings for "C" locale */
23: struct lconv __lconv_c = {
24: __lconv_static_decimal, /* decimal_point */
25: __lconv_static_null, /* thousands_sep */
26: __lconv_static_null, /* grouping */
27: __lconv_static_null, /* int_curr_symbol */
28: __lconv_static_null, /* currency_symbol */
29: __lconv_static_null, /* mon_decimal_point */
30: __lconv_static_null, /* mon_thousands_sep */
31: __lconv_static_null, /* mon_grouping */
32: __lconv_static_null, /* positive_sign */
33: __lconv_static_null, /* negative_sign */
34: CHAR_MAX (0x7F), /* int_frac_digits */
35: CHAR_MAX, /* frac_digits */
36: CHAR_MAX, /* p_cs_precedes
*/
37: CHAR_MAX, /* p_sep_by_space
*/
38: CHAR_MAX, /* n_cs_precedes
*/
39: CHAR_MAX, /* n_sep_by_space
*/
40: CHAR_MAX, /* p_sign_posn */
41: CHAR_MAX /* n_sign_posn
*/
42: };



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:54 EDT