Re: [Springnet-developer] BUGS Spring.Expressions reject UNICODE character
Brought to you by:
aseovic,
markpollack
|
From: Mark P. <mpo...@in...> - 2007-10-10 18:26:42
|
Hi, I made the change to the .g file but get this exception when running the test antlr.TokenStreamRecognitionException: expecting ''', found '漢' All other tests still pass though. Can you help me to construct a unit test to pass? Thanks for the feedback, I also feel we should support unicode. This is JIRA issue http://opensource.atlassian.com/projects/spring/browse/SPRNET-740 Mark -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Takekazu Omi Sent: Monday, October 01, 2007 11:08 AM To: spr...@li... Subject: [Springnet-developer] BUGS Spring.Expressions reject UNICODE character Hi, I've problem using unicode character in Spring.Expressions. For example Assert.AreEqual("\u6f22\u5b57", ExpressionEvaluator.GetValue(null, "'\u6f22\u5b57'")); it;s falied. see "Scanning Unicode Characters" in http://www.antlr2.org/doc/lexer.html you can fix this! $ cvs diff -c Expression.g Index: Expression.g =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions/Expression. g,v retrieving revision 1.24 diff -c -r1.24 Expression.g *** Expression.g 27 Aug 2007 09:38:11 -0000 1.24 --- Expression.g 1 Oct 2007 11:23:54 -0000 *************** *** 319,324 **** --- 319,325 ---- class ExpressionLexer extends Lexer; options { + charVocabulary = '\u0000' .. '\uFFFE'; classHeaderPrefix = "internal"; k = 2; } -- Takekazu Omi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Springnet-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springnet-developer |