You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sg...@apache.org on 2005/03/19 13:47:14 UTC
cvs commit: jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common GenericServletPortlet.java
sgala 2005/03/19 04:47:14
Modified: commons/src/java/org/apache/jetspeed/util FIFOQueue.java
Queue.java
components/capability/src/java/org/apache/jetspeed/capabilities/impl
ClientImpl.java MediaTypeImpl.java
components/page-manager/src/test/org/apache/jetspeed/page
TestCastorXmlPageManager.java
jetspeed-api/src/java/org/apache/jetspeed/capabilities
CapabilityMap.java Client.java MediaType.java
portal/src/java/org/apache/jetspeed/aggregator/impl
WorkerMonitor.java
portal/src/java/org/apache/jetspeed/util MimeType.java
portals-bridges/common/src/java/org/apache/portals/bridges/common
GenericServletPortlet.java
Log:
passing source files containing non-ascii characters through native2ascii to ensure compilation will succeed in utf-8 (or other encoding) file systems. Mostly harmless, as it happens always in comments.
Revision Changes Path
1.4 +2 -2 jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/FIFOQueue.java
Index: FIFOQueue.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/FIFOQueue.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FIFOQueue.java 8 Mar 2004 00:39:32 -0000 1.3
+++ FIFOQueue.java 19 Mar 2005 12:47:13 -0000 1.4
@@ -20,7 +20,7 @@
* Simple FIFO implementation of Queue interface extending Vector
* as storage backend.
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @version $Id$
*/
public class FIFOQueue extends java.util.Vector implements Queue
1.4 +2 -2 jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/Queue.java
Index: Queue.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/util/Queue.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Queue.java 8 Mar 2004 00:39:32 -0000 1.3
+++ Queue.java 19 Mar 2005 12:47:13 -0000 1.4
@@ -19,7 +19,7 @@
/**
* Queue interface similar to the java.util.Stack interface
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @version $Id$
*/
public interface Queue extends java.util.List
1.2 +2 -2 jakarta-jetspeed-2/components/capability/src/java/org/apache/jetspeed/capabilities/impl/ClientImpl.java
Index: ClientImpl.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/capability/src/java/org/apache/jetspeed/capabilities/impl/ClientImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ClientImpl.java 28 May 2004 18:49:15 -0000 1.1
+++ ClientImpl.java 19 Mar 2005 12:47:13 -0000 1.2
@@ -25,7 +25,7 @@
* Simple implementation of the ClientRegistry interface.
*
* @author <a href="shesmer@raleigh.ibm.com">Stephan Hesmer</a>
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @author <a href="mailto:roger.ruttimann@earthlink.net">Roger Ruttimann</a>
* @version $Id$
*/
1.2 +2 -2 jakarta-jetspeed-2/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java
Index: MediaTypeImpl.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MediaTypeImpl.java 28 May 2004 18:49:15 -0000 1.1
+++ MediaTypeImpl.java 19 Mar 2005 12:47:13 -0000 1.2
@@ -23,7 +23,7 @@
* Default bean like implementation of MediaTypeEntry interface
* suitable for serializing with Castor
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @version $Id$
*/
public class MediaTypeImpl
1.18 +1 -1 jakarta-jetspeed-2/components/page-manager/src/test/org/apache/jetspeed/page/TestCastorXmlPageManager.java
Index: TestCastorXmlPageManager.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/page-manager/src/test/org/apache/jetspeed/page/TestCastorXmlPageManager.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- TestCastorXmlPageManager.java 26 Nov 2004 18:52:37 -0000 1.17
+++ TestCastorXmlPageManager.java 19 Mar 2005 12:47:13 -0000 1.18
@@ -52,7 +52,7 @@
/**
* TestPageXmlPersistence
*
- * @author <a href="raphael@apache.org">Rapha�l Luta </a>
+ * @author <a href="raphael@apache.org">Rapha\u00ebl Luta </a>
* @version $Id: TestCastorXmlPageManager.java,v 1.9 2004/08/24 21:33:05 weaver
* Exp $
*/
1.3 +2 -2 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/CapabilityMap.java
Index: CapabilityMap.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/CapabilityMap.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CapabilityMap.java 4 Nov 2004 18:05:56 -0000 1.2
+++ CapabilityMap.java 19 Mar 2005 12:47:13 -0000 1.3
@@ -21,7 +21,7 @@
* This interface provides lookup features on the capabilities supported
* by a client user agent.
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
* @version $Id$
*/
1.2 +1 -1 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/Client.java
Index: Client.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/Client.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Client.java 28 May 2004 18:51:55 -0000 1.1
+++ Client.java 19 Mar 2005 12:47:13 -0000 1.2
@@ -25,7 +25,7 @@
* </P>
*
* @author <a href="shesmer@raleigh.ibm.com">Stephan Hesmer</a>
- * @author <a href="raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="raphael@apache.org">Rapha\u00ebl Luta</a>
* @author <a href="mailto:roger.ruttimann@earthlink.net">Roger Ruttimann</a>
*/
public interface Client
1.2 +2 -2 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/MediaType.java
Index: MediaType.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/capabilities/MediaType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MediaType.java 28 May 2004 18:51:55 -0000 1.1
+++ MediaType.java 19 Mar 2005 12:47:13 -0000 1.2
@@ -25,7 +25,7 @@
* FIXME: we should add some additionnal attrbutes for separating 2 versions
* of the same mime type
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @version $Id$
*/
public interface MediaType
1.5 +2 -2 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/WorkerMonitor.java
Index: WorkerMonitor.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/WorkerMonitor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- WorkerMonitor.java 22 Nov 2004 23:58:21 -0000 1.4
+++ WorkerMonitor.java 19 Mar 2005 12:47:14 -0000 1.5
@@ -32,7 +32,7 @@
* If jobs come in faster that processing, they are stored in a queue
* which is flushed periodically by a QueueMonitor.
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @version $Id$
*/
public class WorkerMonitor
1.3 +2 -2 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/util/MimeType.java
Index: MimeType.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/util/MimeType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MimeType.java 8 Mar 2004 00:34:31 -0000 1.2
+++ MimeType.java 19 Mar 2005 12:47:14 -0000 1.3
@@ -23,7 +23,7 @@
* utility manipulation methods.</p>
* <p>Added Content-Encoding capability, with defaults
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta</a>
+ * @author <a href="mailto:raphael@apache.org">Rapha\u00ebl Luta</a>
* @author <a href="mailto:sgala@apache.org">Santiago Gala</a>
* @version $Id$
*/
1.8 +2 -2 jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java
Index: GenericServletPortlet.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- GenericServletPortlet.java 17 Feb 2005 19:49:52 -0000 1.7
+++ GenericServletPortlet.java 19 Mar 2005 12:47:14 -0000 1.8
@@ -39,7 +39,7 @@
* the JSR 168 for more information
*
* <pre>
- * <!�- Portlet Preferences -->
+ * <!-- Portlet Preferences -->
* <portlet-preferences>
* <preference>
* <description>Action Servlet</description>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Encoding of .java and .properties files
Posted by Santiago Gala <sg...@hisitech.com>.
El sáb, 19-03-2005 a las 12:47 +0000, sgala@apache.org escribió:
> Log: passing source files containing non-ascii characters through
> native2ascii to ensure compilation will succeed in utf-8 (or other
> encoding) file systems. Mostly harmless, as it happens always in
> comments.
I'm cleaning all repositories of those. Since I use UTF-8 in my locale,
lots of java projects are failing to build with a
"sun.io.MalformedInputException".
Officially, .java files are recommended to be ascii, using native2ascii
to turn foreign chars into \uNNNN escapes.
OTOH, .properties are officially (see java.util.Properties javadoc) read
as iso-8859-1, again recommending the encoding of the files as ASCII
using native2ascii.
I'll do the same with the .properties files, and also in other
repositories, unless someone has reason to object.
For a comfortable edition, people can use native2ascii -reverse (and
-encoding if they want to specify an origin or target encoding) before
edition, but please don't forget to undo, turning non-ASCII chars into
\uNNNN escapes, before committing.
\uNNNN escapes are translated before the lexical phase of the java
compiler, so they are invisible to java.
Regards
--
Santiago Gala <sg...@hisitech.com>
High Sierra Technology, SLU