Security patch MS07-040 for .Net 2.0 breaks some culture names for .Net 2.0 on Windows XP/2003/2000

[12 July 2007] Updated with culture names on list of effected cultures  The .Net patch of July 10th, ms07-049 http://www.microsoft.com/technet/security/Bulletin/ms07-040.mspx, changes culture names to use the new names on Windows XP/2003/2000 as well as Vista.  changes culture names to conform to the standards. KB 939949, http://support.microsoft.com/kb/939949, deals with this issue and suggests the workaround posted here: http://blogs.msdn.com/shawnste/archive/2006/10/13/vista-changes-net-2-0-locale-names-sample-work-around-custom-cultures-locales.aspx . This has…

9

Vista international configuration document on-line

As I’ve said before, its often good to honor the user’s international settings, which they can set using the intl.cpl (Regional and Language Options) control panel. Sometimes it is interesting to be able to configure these settings programmatically.  Some of you’ve discovered their location in the registry, but that’s generally not recommended because it might…


I see my favorite Ansi function has the behavior I want.

Occasionally I am asked about the A version of a W function.  Ie: GetLocaleInfoA does something that appears more convenient to some user than GetLocaleInfoW.  The implied thought is that maybe they should just use the A version. For the most part our A functions are just wrappers for the W functions, so any perceived…


Almost dismasted

As you may have guessed from the photo, I like to sail.  I have an F-25 trimaran “Gazelle” that was built by the previous owner from wood.  I’ve sailed from Puget sound to Desolation sound in her, and near Vancouver we outran a commercial fishing vessel once at about 13 knots 🙂  Sailing seems to…

1

Why can’t we strip the diacritics?

We have some “best-fit” behavior which we generally consider to be “bad”.  Any loss of data is generally a bad thing, so we recommend storing data in Unicode (so you don’t lose anything).  Assuming you can’t use Unicode, why is it so bad to just make everything ASCII-like?  Maybe you have a published house or…

5

Encoder/Decoder Encoding fallbacks fail after 2GB of data has been converted

We have an unfortunate bug in .Net v2.0+ that causes encoding or decoding of more than 2GB of data to fail.  That’s a lot of data, but it still shouldn’t do that.  This is a problem with our built in fallbacks. Ironically, if you encounter bad bytes then the bug is reset and you’re “good”…


Updated custom culture sample workaround for the .Net 2.0 Culture Name Change

I updated the sample for Vista changes .Net 2.0 Locale Names, sample work around custom cultures/locales.  I added the aliased cultures to the parent chain of the old culture by creating a replacement of the new culture and changing the parent to the old culture.


How to tell if the collation version changed.

I added this to the msdn wiki for collation, but I’ll blog about it here too.  Occasionally we change the sorting behavior because new code points are added to Unicode, or we find out betterer data or made a mistake (never!) or whatever.  Unfortunately if you built an index (like for a binary search), then when…


DateTime.Parse() and DateTime.TryParse() fail in some cases

DateTime.Parse and DateTime.TryParse fail in .Net 2.0 if the user locale date override has a space in it.  Ie: if its something like “M d yyyy”.  .Net is getting tripped up over the space (we’re working on a fix for SP1/Orcas). A workaround is to pass the culture without the user overrides as the format…


MLang & MSXML6 doesn’t like UTF-7

In some cases MLang (on which MSXML6 depends) can added extra ? to decoded UTF-7 data, which can cause UTF-7 encoded XML to fail to parse. UTF-7 isn’t a great encoding anyway, so this is just another reason to Please Avoid UTF-7. In particular there doesn’t seem to me to be much reason to use…

2