'Which is almost the right logic' -- WTF?

by Michael S. Kaplan, published on 2006/09/06 03:21 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2006/09/06/742127.aspx


Minutes ago, I posted IsSortable() == false? Well, sometimes it may be lying.... and I mildly oversimplified something. I said:

But if course you can do it yourself, too (for now) -- you can p/invoke the Win32 NLS API function IsNLSDefinedString any time CultureInfo.CultureTypes includes CultureTypes.WindowsOnlyCultures. Which is almost the right logic.

Maybe the fact that I pointed out it was not exactly right gets me off the hook? :-)

Anyway, what I meant there was that to be perfectly fair it may also be a "Windows Only" sort even if it is not a "Windows Only" culture if it includes CultureTypes.UserCustomCulture and a culture created from the CompareInfo.LCID represents one of those CultureTypes.WindowsOnlyCultures.

Unfortunately, there isn't an easier way to calculate this information available currently. By the time one could be available, we could likely have fixed the problem with the static CompareInfo.IsSortable anyway. :-)

 

This post brought to you by (U+1841, a.k.a. MONGOLIAN LETTER ZHI)


no comments

Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day