commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sco...@apache.org
Subject svn commit: r160408 - in jakarta/commons/proper/net/trunk/src: java/org/apache/commons/net/ftp/FTPClientConfig.java test/org/apache/commons/net/ftp/FTPClientConfigTest.java test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
Date Thu, 07 Apr 2005 15:14:32 GMT
Author: scohen
Date: Thu Apr  7 08:14:31 2005
New Revision: 160408

URL: http://svn.apache.org/viewcvs?view=rev&rev=160408
Log:
Convert non-7bit ascii chars to unicode.

Modified:
    jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/FTPClientConfig.java
    jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/FTPClientConfigTest.java
    jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java

Modified: jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/FTPClientConfig.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/FTPClientConfig.java?view=diff&r1=160407&r2=160408
==============================================================================
--- jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/FTPClientConfig.java
(original)
+++ jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/FTPClientConfig.java
Thu Apr  7 08:14:31 2005
@@ -98,7 +98,7 @@
  *    FTPClient f=FTPClient();
  *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_VMS);
  *    conf.setShortMonthNames(
- *        "jan|feb|mar|apr|maí|jún|júl|ágú|sep|okt|nóv|des");
+ *        "jan|feb|mar|apr|ma\u00ED|j\u00FAn|j\u00FAl|\u00e1g\u00FA|sep|okt|n\u00F3v|des");
  *    f.configure(conf);
  *    f.connect(server);
  *    f.login(username, password);
@@ -254,7 +254,7 @@
 
 		// some don't
 		LANGUAGE_CODE_MAP.put("fr",	
-		        "jan|fév|mar|avr|mai|jun|jui|aoû|sep|oct|nov|déc");  //french
+		        "jan|f\u00e9v|mar|avr|mai|jun|jui|ao\u00fb|sep|oct|nov|d\u00e9c");  //french
 			
 	}
 	

Modified: jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/FTPClientConfigTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/FTPClientConfigTest.java?view=diff&r1=160407&r2=160408
==============================================================================
--- jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/FTPClientConfigTest.java
(original)
+++ jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/FTPClientConfigTest.java
Thu Apr  7 08:14:31 2005
@@ -113,7 +113,7 @@
         Date d2 = null;
         Date d3 = null;
         try {
-	        d1 = sdf1.parse("31 déc 2004");
+	        d1 = sdf1.parse("31 d\u00e9c 2004");
         } catch (ParseException px) {
             fail("failed.to.parse.french");
         }

Modified: jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java?view=diff&r1=160407&r2=160408
==============================================================================
--- jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
(original)
+++ jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
Thu Apr  7 08:14:31 2005
@@ -129,7 +129,7 @@
 			fail("failed.to.parse.default");
 		}
 		try {
-			parser.parseTimestamp("fév 22 2002");
+			parser.parseTimestamp("f\u00e9v 22 2002");
 			fail("should.have.failed.to.parse.default");
 		} catch (ParseException e) {
 			// this is the success case
@@ -141,13 +141,13 @@
 		config.setServerLanguageCode("fr");
 		parser.configure(config);
 		try {
-			parser.parseTimestamp("déc 22 2002");
+			parser.parseTimestamp("d\u00e9c 22 2002");
 			fail("incorrect.field.order");
 		} catch (ParseException e) {
 			// this is the success case
 		}
 		try {
-			parser.parseTimestamp("22 déc 2002");
+			parser.parseTimestamp("22 d\u00e9c 2002");
 		} catch (ParseException e) {
 			fail("failed.to.parse.french");
 		}
@@ -159,27 +159,27 @@
 			// this is the success case
 		}
 		try {
-			parser.parseTimestamp("29 fév 2002");
+			parser.parseTimestamp("29 f\u00e9v 2002");
 			fail("nonexistent.date");
 		} catch (ParseException e) {
 			// this is the success case
 		}
 
 		try {
-			parser.parseTimestamp("22 aoû 30:02");
+			parser.parseTimestamp("22 ao\u00fb 30:02");
 			fail("bad.hour");
 		} catch (ParseException e) {
 			// this is the success case
 		}
 		
 		try {
-			parser.parseTimestamp("22 aoû 20:74");
+			parser.parseTimestamp("22 ao\u00fb 20:74");
 			fail("bad.minute");
 		} catch (ParseException e) {
 			// this is the success case
 		}
 		try {
-			parser.parseTimestamp("28 aoû 20:02");
+			parser.parseTimestamp("28 ao\u00fb 20:02");
 		} catch (ParseException e) {
 			fail("failed.to.parse.french.recent");
 		}



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message