Sorting it all Out Michael Kaplan's random stuff of dubious value Be sure to read the disclaimer here first!
It is probable bordering on certainty that the Zombies were not singing about cultures in the .NET Framework in their song Time of the Season. Even in some kind of prophetic sense.
And while I'm sure there are parents out there who may not be keen on the resource model that the .NET Framework uses (i.e. if resources do not exist for a particular language, check what its parents have!), the resource fallback model has some important customization abilities over simple string parsing of RFC-1766 or RFE-3066 names.
But this post is not about any of that. This post is about Windows.
I mean, it is easy to claim in the .NET Framework that CultureInfo names are where it is at, and that LCIDs are just there for backwards compatibility.
But meanwhile back in Windows, the NLS API and all of its functions pivot on LCID.
Well, they used to, I mean.
Because Windows Vista supports new functions that take locale names rather than LCIDs!
For now, I'll just list a bunch of the ones that are on the MSDN site online:
And of course there is the easy moving between names and LCIDs with LCIDToLocaleName and LocaleNameToLCID.
Future posts will talk about various details of many of these new functions and the special things that some of them can do that go above and beyond their LCID-based versions.
And just so you don't think the post title was entirely gratuitous:
So now any developer running Vista can ask of a locale those immortal questions first asked by The Zombies -- What's your name? Who's your daddy?
And parents throughout the world will shudder at the precedent since those often neutral names that are the parents can be used for resource fallback, along with the new MUI functions for UI language that I will talk about another day..... :-)
This post brought to you by "𝅘𝅥" (U+1d15f, a.k.a. MUSICAL SYMBOL QUARTER NOTE)
Some may remember when I asked the question Why doesn't GetDateFormat take a CALID? Some will recall
You may have seen the first part of this series ( A way better model for features ). Think of this as
Regular readers might recall a long ago blog entitled New in Vista: What's your name? Who's your daddy?