logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1170486 - /logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs
Date Wed, 14 Sep 2011 09:11:49 GMT
Author: bodewig
Date: Wed Sep 14 09:11:49 2011
New Revision: 1170486

URL: http://svn.apache.org/viewvc?rev=1170486&view=rev
Log:
explicitly set encoding to ASCII to avoid file name length mismatch because of BOMs

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

Modified: logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs?rev=1170486&r1=1170485&r2=1170486&view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs (original)
+++ logging/log4net/trunk/tests/src/Appender/RollingFileAppenderTest.cs Wed Sep 14 09:11:49
2011
@@ -251,6 +251,7 @@ namespace log4net.Tests.Appender
 			RollingFileAppender appender = new RollingFileAppender();
 			appender.Layout = layout;
 			appender.File = c_fileName;
+                        appender.Encoding = Encoding.ASCII;
 			appender.MaximumFileSize = c_iMaximumFileSize.ToString();
 			appender.MaxSizeRollBackups = _MaxSizeRollBackups;
 			appender.CountDirection = _iCountDirection;



Mime
View raw message