Author: gert
Date: 2007-12-03 14:46:27 -0500 (Mon, 03 Dec 2007)
New Revision: 90585
Added:
trunk/gert/standalone/bug345627/
trunk/gert/standalone/bug345627/default.build
trunk/gert/standalone/bug345627/localized/
trunk/gert/standalone/bug345627/localized/MyClass.ca.resx
trunk/gert/standalone/bug345627/localized/MyClass.cs
trunk/gert/standalone/bug345627/localized/MyClass.nl-BE.resx
trunk/gert/standalone/bug345627/localized/MyClass.resx
trunk/gert/standalone/bug345627/main/
trunk/gert/standalone/bug345627/main/Program.cs
Modified:
trunk/gert/standalone/known-issues
Log:
Added test for bug#345627.
Added: trunk/gert/standalone/bug345627/default.build
===================================================================
--- trunk/gert/standalone/bug345627/default.build 2007-12-03 19:41:35 UTC
(rev 90584)
+++ trunk/gert/standalone/bug345627/default.build 2007-12-03 19:46:27 UTC
(rev 90585)
@@ -0,0 +1,82 @@
+<project name="bug345627" default="rebuild">
+ <target name="mono-1.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+ </target>
+
+ <target name="mono-2.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+ </target>
+
+ <target name="net-1.1">
+ <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+ </target>
+
+ <target name="net-2.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+ </target>
+
+ <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+ <target name="init">
+ <if test="${not
target::exists(nant.settings.currentframework)}">
+ <fail>Framework '${nant.settings.currentframework}' is
not supported.</fail>
+ </if>
+ <call target="${nant.settings.currentframework}" />
+ </target>
+
+ <target name="clean">
+ <delete>
+ <fileset>
+ <include name="main/nl-BE/**" />
+ <include name="main/main.exe" />
+ <include name="localized/ca/**" />
+ <include name="localized/nl-BE/**" />
+ <include name="localized/localized.dll" />
+ <include name="out" />
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="build">
+ <property name="original.targetframework"
value="${nant.settings.currentframework}" />
+
+ <foreach property="framework" item="String" in="${frameworks}"
delim=",">
+ <if test="${framework::exists(framework)}">
+ <property name="nant.settings.currentframework"
value="${framework}" />
+ <call target="run" />
+ <call target="clean" />
+ </if>
+ </foreach>
+
+ <property name="nant.settings.currentframework"
value="${original.targetframework}" />
+ </target>
+
+ <target name="compile" depends="init">
+ <csc target="library" define="${csc.defines}"
output="localized/localized.dll" warnaserror="true" warninglevel="4">
+ <sources basedir="localized">
+ <include name="MyClass.cs" />
+ </sources>
+ <resources basedir="localized">
+ <include name="*.resx" />
+ </resources>
+ </csc>
+ <csc target="exe" define="${csc.defines}"
output="main/main.exe" warnaserror="true" warninglevel="4">
+ <sources basedir="main">
+ <include name="../../../build/common/Assert.cs"
/>
+ <include name="Program.cs" />
+ </sources>
+ </csc>
+ </target>
+
+ <target name="run" depends="compile">
+ <move todir="main">
+ <fileset basedir="localized">
+ <include name="nl-BE/**" />
+ </fileset>
+ </move>
+ <exec program="main/main.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="rebuild" depends="clean, build" />
+</project>
Property changes on: trunk/gert/standalone/bug345627/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug345627/localized/MyClass.ca.resx
===================================================================
--- trunk/gert/standalone/bug345627/localized/MyClass.ca.resx 2007-12-03
19:41:35 UTC (rev 90584)
+++ trunk/gert/standalone/bug345627/localized/MyClass.ca.resx 2007-12-03
19:46:27 UTC (rev 90585)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="SystemInformation" xml:space="preserve">
+ <value>Informació del sistema</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug345627/localized/MyClass.ca.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug345627/localized/MyClass.cs
===================================================================
--- trunk/gert/standalone/bug345627/localized/MyClass.cs 2007-12-03
19:41:35 UTC (rev 90584)
+++ trunk/gert/standalone/bug345627/localized/MyClass.cs 2007-12-03
19:46:27 UTC (rev 90585)
@@ -0,0 +1,3 @@
+public class MyClass
+{
+}
Property changes on: trunk/gert/standalone/bug345627/localized/MyClass.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug345627/localized/MyClass.nl-BE.resx
===================================================================
--- trunk/gert/standalone/bug345627/localized/MyClass.nl-BE.resx
2007-12-03 19:41:35 UTC (rev 90584)
+++ trunk/gert/standalone/bug345627/localized/MyClass.nl-BE.resx
2007-12-03 19:46:27 UTC (rev 90585)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="SystemInformation" xml:space="preserve">
+ <value>Systeeminformatie</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on:
trunk/gert/standalone/bug345627/localized/MyClass.nl-BE.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug345627/localized/MyClass.resx
===================================================================
--- trunk/gert/standalone/bug345627/localized/MyClass.resx 2007-12-03
19:41:35 UTC (rev 90584)
+++ trunk/gert/standalone/bug345627/localized/MyClass.resx 2007-12-03
19:46:27 UTC (rev 90585)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>1.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="SystemInformation" xml:space="preserve">
+ <value>System information</value>
+ </data>
+</root>
\ No newline at end of file
Property changes on: trunk/gert/standalone/bug345627/localized/MyClass.resx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug345627/main/Program.cs
===================================================================
--- trunk/gert/standalone/bug345627/main/Program.cs 2007-12-03 19:41:35 UTC
(rev 90584)
+++ trunk/gert/standalone/bug345627/main/Program.cs 2007-12-03 19:46:27 UTC
(rev 90585)
@@ -0,0 +1,19 @@
+using System;
+using System.Globalization;
+using System.IO;
+using System.Reflection;
+using System.Resources;
+
+class Program
+{
+ static void Main ()
+ {
+ string dir = AppDomain.CurrentDomain.BaseDirectory;
+ Assembly asm = Assembly.LoadFrom (Path.Combine (dir,
"../localized/localized.dll"));
+ ResourceManager rm = new ResourceManager ("MyClass", asm);
+
+ Assert.AreEqual ("System information", rm.GetObject
("SystemInformation", new CultureInfo ("en-US")), "#1");
+ Assert.AreEqual ("Informaci� del sistema", rm.GetObject
("SystemInformation", new CultureInfo ("ca-ES")), "#2");
+ Assert.AreEqual ("Systeeminformatie", rm.GetObject
("SystemInformation", new CultureInfo ("nl-BE")), "#3");
+ }
+}
Property changes on: trunk/gert/standalone/bug345627/main/Program.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2007-12-03 19:41:35 UTC (rev 90584)
+++ trunk/gert/standalone/known-issues 2007-12-03 19:46:27 UTC (rev 90585)
@@ -130,3 +130,4 @@
bug341743/**
bug342513/**
bug343837/**
+bug345627/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches