This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java@gcc.gnu.org


ARTUR MILER writes:
 > Hi;
 > 
 > I have a little problem with gcj. I can't compile programms that have swedish 
 > charactes in comments!!! Here is example:
 > 
 > class error
 > {
 >   public static void main(String[] a)
 >   {
 >     /**Den här kompilerar inte med gcj!!!
 >      */
 >     System.out.println("Now it works!");
 >   }
 > }
 > Here is output:
 > 
 > $ gcj error.java --main=error
 > error.java:5: error: malformed UTF-8 character.
 >        /**Den här kompilerar inte med gcj!!!
 >                                             ^
 > 1 error
 > 
 > Can I do something to get gcj use unicode instead or is this a bug?

gcj error.java --main=error --encoding=ISO-8859-1

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]