UTF-8 Support
-------------

                 Key: MJNCSS-15
                 URL: http://jira.codehaus.org/browse/MJNCSS-15
             Project: Maven 2.x JavaNCSS Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-2
         Environment: Linux, Java 1.6, Maven 2.0.6
            Reporter: Petr Ferschmann
            Assignee: Jean-Laurent de Morlhon


I am using czech language in sources. When I run mvn javancss:report I got this:


[INFO] [javancss:report]
TokenMgrError in 
/home/fers/prj/exekutori/pes/shared/tools/tools/src/main/java/cz/softeu/tools/hibernate/ServletPrinter.java
Lexical error at line 120, column 34.  Encountered: "\r" (13), after : "\"Po"

Caused by: java.lang.Exception: javancss.TokenMgrError: Lexical error at line 
120, column 34.  Encountered: "\r" (13), after : "\"Po"
        ... 23 more
Caused by: javancss.TokenMgrError: Lexical error at line 120, column 34.  
Encountered: "\r" (13), after : "\"Po"
        at 
javancss.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:1781)
        at javancss.JavaParser.jj_ntk(JavaParser.java:11397)
        at javancss.JavaParser.VariableInitializer(JavaParser.java:1585)
        at javancss.JavaParser.VariableDeclarator(JavaParser.java:1546)
        at javancss.JavaParser.LocalVariableDeclaration(JavaParser.java:3771)
        at javancss.JavaParser.BlockStatement(JavaParser.java:3691)
        at javancss.JavaParser.Block(JavaParser.java:3684)
        at javancss.JavaParser.MethodDeclaration(JavaParser.java:1846)
        at javancss.JavaParser.ClassBodyDeclaration(JavaParser.java:975)
        at javancss.JavaParser.ClassBody(JavaParser.java:846)
        at javancss.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:775)
        at javancss.JavaParser.ClassDeclaration(JavaParser.java:706)
        at javancss.JavaParser.TypeDeclaration(JavaParser.java:567)
        at javancss.JavaParser.CompilationUnit(JavaParser.java:300)
        at javancss.Javancss._measureSource(Javancss.java:190)
        at javancss.Javancss._measureSource(Javancss.java:155)
        at javancss.Javancss._measureFiles(Javancss.java:282)
        at javancss.Javancss._measureRoot(Javancss.java:308)
        at javancss.Javancss.<init>(Javancss.java:604)
        at org.codehaus.mojo.javancss.NcssExecuter.execute(NcssExecuter.java:90)
        ... 22 more


The file contains:
                String text = "Po&#269;et záznam&#367;: <input type=\"text\" 
name=\"max\" size=\"30\" value=\"" + m + "\" />";

(non ascii characters with UTF-8)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to