Bug 7899 - DataTableCollection/DataColumnCollection and Czech culture
Summary: DataTableCollection/DataColumnCollection and Czech culture
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2012-10-18 13:41 UTC by Dominique NORMAND
Modified: 2013-03-29 13:40 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dominique NORMAND 2012-10-18 13:41:33 UTC
For a DataSet DS that has the table "machine_node", DS.Tables["MACHINE_NODE"] returns null when the current culture is CZech (LCID = 1029).
This is due to "ch" being a contraction in Czech, but since DataTableCollection is supposed to be case sensitive, it should work anyway (it does work in Microsoft .NET)
Note that this also applies to the DataColumnCollection.
Also DataTableCollection & DataColumnCollection are using the current culture instead of using the DataTable.Locale

Here's some code to reproduce the defect

	System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(1029);

	var ds = new System.Data.DataSet() ;
	ds.Locale = CultureInfo.GetCultureInfo(1033); // US
	ds.Tables.Add("machine").Locale = ds.Locale;
	var t = ds.Tables["MACHINE"] ;
	if (t == null)
		throw new Exception("table MACHINE doesn't exist");
Comment 1 Marek Safar 2013-03-29 13:40:57 UTC
Fixed in master