[Springnet-developer] BUGS Spring.Expressions reject UNICODE character
Brought to you by:
aseovic,
markpollack
|
From: Takekazu O. <tak...@gm...> - 2007-10-01 15:08:17
|
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
|