svn commit: r1511784 - /logging/log4net/branches/1.2.12/pom.xml

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 13:56:01 2013
New Revision: 1511784

URL: http://svn.apache.org/r1511784
Log:
we're using Jenkins now

Modified:
logging/log4net/branches/1.2.12/pom.xml

Modified: logging/log4net/branches/1.2.12/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/pom.xml?rev=1511784&r1=1511783&r2=1511784&view=diff
==
--- logging/log4net/branches/1.2.12/pom.xml (original)
+++ logging/log4net/branches/1.2.12/pom.xml Thu Aug  8 13:56:01 2013
@@ -30,8 +30,8 @@
 https://issues.apache.org/jira/browse/LOG4NET
   
   
-Gump
-
http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/index.html
+Jenkins
+https://builds.apache.org/job/log4net-trunk-build/
   
   
 




svn commit: r1511785 - in /logging/log4net/branches/1.2.12/src/site/xdoc/release: features.xml framework-support.xml

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 13:56:38 2013
New Revision: 1511785

URL: http://svn.apache.org/r1511785
Log:
1.2.12 won't ship with binaries for compact framework anymore

Modified:
logging/log4net/branches/1.2.12/src/site/xdoc/release/features.xml
logging/log4net/branches/1.2.12/src/site/xdoc/release/framework-support.xml

Modified: logging/log4net/branches/1.2.12/src/site/xdoc/release/features.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/src/site/xdoc/release/features.xml?rev=1511785&r1=1511784&r2=1511785&view=diff
==
--- logging/log4net/branches/1.2.12/src/site/xdoc/release/features.xml 
(original)
+++ logging/log4net/branches/1.2.12/src/site/xdoc/release/features.xml Thu Aug  
8 13:56:38 2013
@@ -77,7 +77,7 @@ limitations under the License.
 Microsoft .NET Framework 3.5 Client Profile
 Microsoft .NET Framework 4.0 Client Profile
 Microsoft .NET Compact Framework 1.0*
-Microsoft .NET Compact Framework 2.0
+Microsoft .NET Compact Framework 2.0*
 Mono 1.0
 Mono 2.0
 Microsoft Shared Source CLI 1.0*

Modified: 
logging/log4net/branches/1.2.12/src/site/xdoc/release/framework-support.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/src/site/xdoc/release/framework-support.xml?rev=1511785&r1=1511784&r2=1511785&view=diff
==
--- logging/log4net/branches/1.2.12/src/site/xdoc/release/framework-support.xml 
(original)
+++ logging/log4net/branches/1.2.12/src/site/xdoc/release/framework-support.xml 
Thu Aug  8 13:56:38 2013
@@ -124,7 +124,7 @@ limitations under the License.
 
 
   There are no assemblies targeting the Compact
-  Framework 1.0 or Microsoft Shared Source CLI 1.0 in
+  Framework 1.0/2.0 or Microsoft Shared Source CLI 1.0 in
   the binary release, but they can be built from the
   source release.
 




svn commit: r1511769 - in /logging/log4net/branches/1.2.12: ./ tests/src/Appender/RemotingAppenderTest.cs tests/src/Layout/PatternLayoutTest.cs

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 13:10:34 2013
New Revision: 1511769

URL: http://svn.apache.org/r1511769
Log:
merge fixed tests

Modified:
logging/log4net/branches/1.2.12/   (props changed)
logging/log4net/branches/1.2.12/tests/src/Appender/RemotingAppenderTest.cs
logging/log4net/branches/1.2.12/tests/src/Layout/PatternLayoutTest.cs

Propchange: logging/log4net/branches/1.2.12/
--
svn:mergeinfo = /logging/log4net/trunk:1511765-1511766

Modified: 
logging/log4net/branches/1.2.12/tests/src/Appender/RemotingAppenderTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/tests/src/Appender/RemotingAppenderTest.cs?rev=1511769&r1=1511768&r2=1511769&view=diff
==
--- logging/log4net/branches/1.2.12/tests/src/Appender/RemotingAppenderTest.cs 
(original)
+++ logging/log4net/branches/1.2.12/tests/src/Appender/RemotingAppenderTest.cs 
Thu Aug  8 13:10:34 2013
@@ -75,7 +75,7 @@ namespace log4net.Tests.Appender
}
 
/// 
-   /// Test that the UserName property is not remoted when doing a 
Fix.Partial
+   /// Test that the LocationInfo property is not remoted when 
doing a Fix.Partial
/// 
[Test]
public void TestPartialFix()
@@ -100,11 +100,11 @@ namespace log4net.Tests.Appender
// Grab the event data
LoggingEventData eventData = 
GetLoggingEventData(events[0]);
 
-   Assert.IsNull(eventData.UserName, "Expect username to 
be null because only doing a partial fix");
+   Assert.IsNull(eventData.LocationInfo, "Expect 
LocationInfo to be null because only doing a partial fix");
}
 
/// 
-   /// Test that the UserName property is remoted when doing a 
Fix.All
+   /// Test that the LocationInfo property is remoted when doing a 
Fix.All
/// 
[Test]
public void TestFullFix()
@@ -129,7 +129,7 @@ namespace log4net.Tests.Appender
// Grab the event data
LoggingEventData eventData = 
GetLoggingEventData(events[0]);
 
-   Assert.IsNotNull(eventData.UserName, "Expect username 
to not be null because doing a full fix");
+   Assert.IsNotNull(eventData.LocationInfo, "Expect 
LocationInfo to not be null because doing a full fix");
}
 
/// 

Modified: logging/log4net/branches/1.2.12/tests/src/Layout/PatternLayoutTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/tests/src/Layout/PatternLayoutTest.cs?rev=1511769&r1=1511768&r2=1511769&view=diff
==
--- logging/log4net/branches/1.2.12/tests/src/Layout/PatternLayoutTest.cs 
(original)
+++ logging/log4net/branches/1.2.12/tests/src/Layout/PatternLayoutTest.cs Thu 
Aug  8 13:10:34 2013
@@ -111,11 +111,7 @@ namespace log4net.Tests.Layout
 ILog log1 = LogManager.GetLogger(rep.Name, 
"TestStackTracePattern");
 
 log1.Info("TestMessage");
-#if !MONO
-Assert.AreEqual("System.RuntimeMethodHandle.InvokeMethod > 
log4net.Tests.Layout.PatternLayoutTest.TestStackTracePattern", 
stringAppender.GetString(), "stack trace value set");
-#else
-Assert.AreEqual("MonoMethod.InternalInvoke > 
PatternLayoutTest.TestStackTracePattern", stringAppender.GetString(), "stack 
trace value set");
-#endif
+StringAssert.EndsWith("PatternLayoutTest.TestStackTracePattern", 
stringAppender.GetString(), "stack trace value set");
 stringAppender.Reset();
 }
 




svn commit: r1511766 - /logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 13:06:02 2013
New Revision: 1511766

URL: http://svn.apache.org/r1511766
Log:
make PatternLayoutTest independent of reflection implementation

Modified:
logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs

Modified: logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs?rev=1511766&r1=1511765&r2=1511766&view=diff
==
--- logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs (original)
+++ logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs Thu Aug  8 
13:06:02 2013
@@ -111,11 +111,7 @@ namespace log4net.Tests.Layout
 ILog log1 = LogManager.GetLogger(rep.Name, 
"TestStackTracePattern");
 
 log1.Info("TestMessage");
-#if !MONO
-Assert.AreEqual("System.RuntimeMethodHandle.InvokeMethod > 
log4net.Tests.Layout.PatternLayoutTest.TestStackTracePattern", 
stringAppender.GetString(), "stack trace value set");
-#else
-Assert.AreEqual("MonoMethod.InternalInvoke > 
PatternLayoutTest.TestStackTracePattern", stringAppender.GetString(), "stack 
trace value set");
-#endif
+StringAssert.EndsWith("PatternLayoutTest.TestStackTracePattern", 
stringAppender.GetString(), "stack trace value set");
 stringAppender.Reset();
 }
 




svn commit: r1511765 - /logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 13:03:07 2013
New Revision: 1511765

URL: http://svn.apache.org/r1511765
Log:
Username is always fixed thanks to LOG4NET-205

Modified:
logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs

Modified: logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs?rev=1511765&r1=1511764&r2=1511765&view=diff
==
--- logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs (original)
+++ logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs Thu Aug  8 
13:03:07 2013
@@ -75,7 +75,7 @@ namespace log4net.Tests.Appender
}
 
/// 
-   /// Test that the UserName property is not remoted when doing a 
Fix.Partial
+   /// Test that the LocationInfo property is not remoted when 
doing a Fix.Partial
/// 
[Test]
public void TestPartialFix()
@@ -100,11 +100,11 @@ namespace log4net.Tests.Appender
// Grab the event data
LoggingEventData eventData = 
GetLoggingEventData(events[0]);
 
-   Assert.IsNull(eventData.UserName, "Expect username to 
be null because only doing a partial fix");
+   Assert.IsNull(eventData.LocationInfo, "Expect 
LocationInfo to be null because only doing a partial fix");
}
 
/// 
-   /// Test that the UserName property is remoted when doing a 
Fix.All
+   /// Test that the LocationInfo property is remoted when doing a 
Fix.All
/// 
[Test]
public void TestFullFix()
@@ -129,7 +129,7 @@ namespace log4net.Tests.Appender
// Grab the event data
LoggingEventData eventData = 
GetLoggingEventData(events[0]);
 
-   Assert.IsNotNull(eventData.UserName, "Expect username 
to not be null because doing a full fix");
+   Assert.IsNotNull(eventData.LocationInfo, "Expect 
LocationInfo to not be null because doing a full fix");
}
 
/// 




svn commit: r1511699 - in /logging/log4net/branches/1.2.12: pom.xml src/site/xdoc/release/release-notes.xml

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 11:22:55 2013
New Revision: 1511699

URL: http://svn.apache.org/r1511699
Log:
Update release notes, remove changes report - it is included in release notes 
anyway

Modified:
logging/log4net/branches/1.2.12/pom.xml
logging/log4net/branches/1.2.12/src/site/xdoc/release/release-notes.xml

Modified: logging/log4net/branches/1.2.12/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/pom.xml?rev=1511699&r1=1511698&r2=1511699&view=diff
==
--- logging/log4net/branches/1.2.12/pom.xml (original)
+++ logging/log4net/branches/1.2.12/pom.xml Thu Aug  8 11:22:55 2013
@@ -118,24 +118,6 @@
   
 

-
-
-  org.apache.maven.plugins
-  maven-changes-plugin
-  2.6
-  
-
-  
-changes-report
-jira-report
-  
-
-  
-  
-Resolved, Closed
-Type,Key,Summary,Assignee,Status,Resolution,Fix 
Version
-  
-
   
 
   

Modified: 
logging/log4net/branches/1.2.12/src/site/xdoc/release/release-notes.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/src/site/xdoc/release/release-notes.xml?rev=1511699&r1=1511698&r2=1511699&view=diff
==
--- logging/log4net/branches/1.2.12/src/site/xdoc/release/release-notes.xml 
(original)
+++ logging/log4net/branches/1.2.12/src/site/xdoc/release/release-notes.xml Thu 
Aug  8 11:22:55 2013
@@ -28,6 +28,120 @@ limitations under the License.
 
 
 
+  
+
+
+  The binary distributions no longer contain assemblies
+  built for the Compact Framework 2.0 - you can build
+  those yourself using the source distribution.
+
+
+
+  
+[LOG4NET-148] - 
ThreadContext uses LocalDataStore to store ThreadSpecific data instead 
should be using  [ThreadStatic] variables.
+
+[LOG4NET-178] - 
Log4Net stops logging after appdomain recycle of ASP.NET2.0 application
+
+[LOG4NET-202] - 
AdoNetAppenderParameter.Size Property is not optional
+
+[LOG4NET-218] - 
Test StringFormatTest.TestFormatString fails
+
+[LOG4NET-220] - 
multiple users overwrite existing log file when RollingFileAppender is 
rolling over date and minimal locking is used
+
+[LOG4NET-228] - 
log4net.Util.HostName may throw 
System.Configuration.ConfigurationErrorsException in 
System.Net.Dns.GetHostName(). The exception should be ignored.
+
+[LOG4NET-266] - 
AdoNetAppender does not work on a IIS 7 website using Windows 
authentication 
+
+[LOG4NET-277] - 
Registering a custom Object Renderer in configuration file
+
+[LOG4NET-284] - 
In a multithreaded application, duplicate messages are output.
+
+[LOG4NET-294] - 
Exception rendering object type [System.OutOfMemoryException]
+
+[LOG4NET-317] - 
LogicalThreadContext sometimes doesn't follow CallContext's logical 
thread  
+
+[LOG4NET-322] - 
Conditional compilation symbols for .net4 Release
+
+[LOG4NET-323] - 
AbsoluteTimeDateFormatter caches string representation of now too 
aggressively
+
+[LOG4NET-331] - 
AdoNetAppender errors when writing Asp.net item when Request object is null
+
+[LOG4NET-335] - 
Lost the ability to monitor changes to logger config files when you call 
ConfigureAndWatch multiple times with different Config File Names - worked fine 
on 1.2.10.0
+
+[LOG4NET-341] - 
RemotingAppender Error
+
+[LOG4NET-343] - 
ArgumentOutOfRangeException in log4net hierarchy on "." logger 
name
+
+[LOG4NET-347] - 
Log4net not working in an ASP.Net environment with medium trust
+
+[LOG4NET-348] - 
System.IndexOutOfRangeException when StackFrameLevel is greater then 
StackFrames length
+
+[LOG4NET-352] - 
CS0419 during build with Mono >2.6
+
+[LOG4NET-360] - 
EventLogAppender can corrupt the event log on Windows Vista and higher if 
the strin

svn commit: r1511690 - in /logging/log4net: ./ branches/1.2.12/ branches/1.2.12/src/ branches/1.2.12/src/site/xdoc/

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 11:03:36 2013
New Revision: 1511690

URL: http://svn.apache.org/r1511690
Log:
Update version numbers

Modified:
logging/log4net/ReleaseInstructions.txt
logging/log4net/branches/1.2.12/log4net.build
logging/log4net/branches/1.2.12/pom.xml
logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cpp
logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cs
logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.js
logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.vb
logging/log4net/branches/1.2.12/src/Log4netAssemblyInfo.cs
logging/log4net/branches/1.2.12/src/site/xdoc/download_log4net.xml

Modified: logging/log4net/ReleaseInstructions.txt
URL: 
http://svn.apache.org/viewvc/logging/log4net/ReleaseInstructions.txt?rev=1511690&r1=1511689&r2=1511690&view=diff
==
--- logging/log4net/ReleaseInstructions.txt (original)
+++ logging/log4net/ReleaseInstructions.txt Thu Aug  8 11:03:36 2013
@@ -4,20 +4,21 @@ release of Apache log4net 1.2.11.
 Prereqs
 ===
 
-* make sure you have all the required software around.  For the 1.2.11
+* make sure you have all the required software around.  For the 1.2.12
   release this meant
 
   - The default Mono installation (2.6.x) on Ubuntu Linux 10.4.  Newer
 versions of Mono currently can't be used as they don't provide
 Mono 1.0 and cause a bunch of extra warnings that will be
-addressed post the 1.2.11 release.
+addressed post the 1.2.12 release (yes, I know I already said
+"after the 1.2.11 release").
 
   - A Windows XP box that is used to create the release binaries with
 
 o a Subversion command line client (I installed Cygwin out of a
   habit and used the Cygwin version)
 
-o NAnt 0.91-alpha2 or better http://nant.sourceforge.net/
+o NAnt 0.92 or better http://nant.sourceforge.net/
 
   Make sure to unblock the ZIP before you extract it.
 
@@ -49,9 +50,6 @@ Prereqs
   As of October 2011 this is available from
   
 
-  The 2.0 SDK provides the compilers for Compact Framework 2.0,
-  the 3.5 SDK does not.  So make sure you use the one for 2.0
-
 o .NET Framework and SDK 4.0
 
   As of October 2011 this is available from
@@ -64,8 +62,8 @@ Prereqs
 
 * Make sure your PGP key is in
    and
-  copy that file to /www.apache.org/dist/logging/log4net/ on
-  people.apache.org.
+  copy that file to
+  https://dist.apache.org/repos/dist/release/logging/log4net/ .
 
   You should also upload your key to the keyservers.
 
@@ -84,10 +82,6 @@ Preparing the Stage
   - src/Log4netAssemblyInfo.cs: public const string Version = "1.2.11"
   - src/site/xdocs/download_log4net.xml - many times
 
-* The next release after 1.2.11 will need to add a section for "old
-  ASF but no longer Incubator" releases pointing to
-  http://archive.apache.org/dist/logging/log4net/
-
 * Create the site using "nant generate-site" in order to create the
   RAT report as a side-effect and fix all files that don't have the
   proper license header.

Modified: logging/log4net/branches/1.2.12/log4net.build
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/log4net.build?rev=1511690&r1=1511689&r2=1511690&view=diff
==
--- logging/log4net/branches/1.2.12/log4net.build (original)
+++ logging/log4net/branches/1.2.12/log4net.build Thu Aug  8 11:03:36 2013
@@ -20,7 +20,7 @@ limitations under the License.
   
   
   
-  
+  
 
   
   

Modified: logging/log4net/branches/1.2.12/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/pom.xml?rev=1511690&r1=1511689&r2=1511690&view=diff
==
--- logging/log4net/branches/1.2.12/pom.xml (original)
+++ logging/log4net/branches/1.2.12/pom.xml Thu Aug  8 11:03:36 2013
@@ -20,7 +20,7 @@
   log4net
   apache-log4net
   pom
-  1.2.12-SNAPSHOT
+  1.2.12
   Apache log4net
   Logging framework for Microsoft .NET Framework.
   http://logging.apache.org/log4net/

Modified: logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cpp
URL: 
http://svn.apache.org/viewvc/logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cpp?rev=1511690&r1=1511689&r2=1511690&view=diff
==
--- logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cpp (original)
+++ logging/log4net/branches/1.2.12/src/AssemblyVersionInfo.cpp Thu Aug  8 
11:03:36 2013
@@ -31,12 +31,12 @@ using namespace System::Runtime::Compile
 // You can specify all the value or you can default the Revision and Build 
Numbers 
 // by using the '*' as shown below:
 
-[assembly: AssemblyVersionAttribute("1.2.11.0")];
+[assembly: AssemblyVersionAttribute("1.2.12.0")];
 [a

svn commit: r1511686 - /logging/log4net/branches/1.2.12/

2013-08-08 Thread bodewig
Author: bodewig
Date: Thu Aug  8 10:50:30 2013
New Revision: 1511686

URL: http://svn.apache.org/r1511686
Log:
Create a branch that can build up the changes needed to tag 1.2.12

Added:
logging/log4net/branches/1.2.12/
  - copied from r1511679, logging/log4net/trunk/



svn commit: r1511662 - in /logging/log4net/trunk/tests/src: Appender/RollingFileAppenderTest.cs Core/StringFormatTest.cs Layout/PatternLayoutTest.cs Layout/XmlLayoutTest.cs log4net.Tests.vs2010.csproj

2013-08-08 Thread dpsenner
Author: dpsenner
Date: Thu Aug  8 10:03:05 2013
New Revision: 1511662

URL: http://svn.apache.org/r1511662
Log:
LOG4NET-218 fixed some tests to work again because of culture trouble

Modified:
logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs
logging/log4net/trunk/tests/src/Core/StringFormatTest.cs
logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
logging/log4net/trunk/tests/src/Layout/XmlLayoutTest.cs
logging/log4net/trunk/tests/src/log4net.Tests.vs2010.csproj

Modified: logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs?rev=1511662&r1=1511661&r2=1511662&view=diff
==
--- logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs 
(original)
+++ logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs Thu Aug 
 8 10:03:05 2013
@@ -31,6 +31,7 @@ using log4net.Repository.Hierarchy;
 using log4net.Util;
 
 using NUnit.Framework;
+using System.Globalization;
 
 namespace log4net.Tests.Appender
 {
@@ -50,6 +51,8 @@ namespace log4net.Tests.Appender
private int _MaxSizeRollBackups = 3;
private CountingAppender _caRoot;
private Logger _root;
+   private CultureInfo _currentCulture;
+   private CultureInfo _currentUICulture;
 
private class SilentErrorHandler : IErrorHandler
{
@@ -111,6 +114,11 @@ namespace log4net.Tests.Appender
{
ResetAndDeleteTestFiles();
InitializeVariables();
+
+   // set correct thread culture
+   _currentCulture = 
System.Threading.Thread.CurrentThread.CurrentCulture;
+   _currentUICulture = 
System.Threading.Thread.CurrentThread.CurrentUICulture;
+   System.Threading.Thread.CurrentThread.CurrentCulture = 
System.Threading.Thread.CurrentThread.CurrentUICulture = 
System.Globalization.CultureInfo.InvariantCulture;
}
 
/// 
@@ -120,6 +128,10 @@ namespace log4net.Tests.Appender
public void TearDown()
{
ResetAndDeleteTestFiles();
+   
+   // restore previous culture
+   System.Threading.Thread.CurrentThread.CurrentCulture = 
_currentCulture;
+   System.Threading.Thread.CurrentThread.CurrentUICulture 
= _currentUICulture;
}
 
/// 

Modified: logging/log4net/trunk/tests/src/Core/StringFormatTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Core/StringFormatTest.cs?rev=1511662&r1=1511661&r2=1511662&view=diff
==
--- logging/log4net/trunk/tests/src/Core/StringFormatTest.cs (original)
+++ logging/log4net/trunk/tests/src/Core/StringFormatTest.cs Thu Aug  8 
10:03:05 2013
@@ -40,6 +40,26 @@ namespace log4net.Tests.Core
[TestFixture]
public class StringFormatTest
{
+   private CultureInfo _currentCulture;
+   private CultureInfo _currentUICulture;
+
+   [SetUp]
+   public void SetUp()
+   {
+   // set correct thread culture
+   _currentCulture = 
System.Threading.Thread.CurrentThread.CurrentCulture;
+   _currentUICulture = 
System.Threading.Thread.CurrentThread.CurrentUICulture;
+   System.Threading.Thread.CurrentThread.CurrentCulture = 
System.Threading.Thread.CurrentThread.CurrentUICulture = 
System.Globalization.CultureInfo.InvariantCulture;
+   }
+
+   [TearDown]
+   public void TearDown()
+   {
+   // restore previous culture
+   System.Threading.Thread.CurrentThread.CurrentCulture = 
_currentCulture;
+   System.Threading.Thread.CurrentThread.CurrentUICulture 
= _currentUICulture;
+   }
+
[Test]
public void TestFormatString()
{

Modified: logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs?rev=1511662&r1=1511661&r2=1511662&view=diff
==
--- logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs (original)
+++ logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs Thu Aug  8 
10:03:05 2013
@@ -29,6 +29,7 @@ using log4net.Tests.Appender;
 using log4net.Util;
 
 using NUnit.Framework;
+using System.Globalization;
 
 namespace log4net.Tests.Layout
 {
@@ -41,10 +42,25 @@ namespace log4net.Tests.La