Hi!
I want to add a new string resource to winhelp program. I've modified only English-localized .rc file. My locale is Ru. When I trying to load this string, LoadString() function returns 0 and GetLastError() returns 0 too. I expect English string to be loaded, but no string is loaded.
When I explicitly set locale LC_ALL=C winhelp then string is loaded OK (nothing else expected).
So, the question: is this behaviour of resource loader correct? Should it fallback to LANG_ENGLISH SUBLANG_DEFAULT if localized string not found and LANG_NEUTRAL/SUBLANG_NEUTRAL is requested (as LoadString does)?
Thanks in advance
-- Kirill K. Smirnov
"Kirill K. Smirnov" lich@math.spbu.ru writes:
So, the question: is this behaviour of resource loader correct? Should it fallback to LANG_ENGLISH SUBLANG_DEFAULT if localized string not found and LANG_NEUTRAL/SUBLANG_NEUTRAL is requested (as LoadString does)?
Strings are stored by blocks of 16, so if others strings in the same block are defined for Russian the resource loader won't fall back to English even if individual strings are missing.