Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/ctokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ wstring ConstraintsTokenizer::getString( IN const wstring& terminator )
movePosition( -1 );
break;
}
// handle special characters
else if ( TEXT_SpecialCharMarker == readChar )
// handle special characters - ensure we only treat backslash as special
else if ( readChar == L'\\' )
{
wchar_t nextChar = peekNextChar();

Expand Down
5 changes: 5 additions & 0 deletions test/japanese_kanji.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
予定日時:Scheduled,NotScheduled
Foo:Bar,Baz

# Testing Japanese Kanji characters in parameter names and constraints
if [予定日時] = "Scheduled" then [Foo] = "Bar";
5 changes: 5 additions & 0 deletions test/special_chars.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Param:Value1,Value2
Param2:Val\"1,Val2

# Testing quotes and backslashes in strings
if [Param] = "Value1" then [Param2] = "Val\"1";