views:

49

answers:

1

When run on a Spanish version of Windows XP my program invokes

LANGID langId = (LANGID) MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT );
LCID locale = MAKELCID( language, SORT_DEFAULT ); 
BOOL isValid = IsValidLocale( locale, LCID_INSTALLED );

IsValideLocale() return FALSE when asked about English locale. Obviously something must be tuned in Windows to change this behaviour. What exactly should I do?

I understand that it's not completely a programming question but rather a deployment question. Still I think it will be better off here than anywhere else.

A: 

May be the problem is that you use SUBLANG_DEFAULT option. Try using SUBLANG_NEUTRAL or use something more concrete, say SUBLANG_ENGLISH_US.

Kirill V. Lyadvinsky