Commit 1a208a5a authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Fix processing of non-ASCII string literals, patch by Alexey Lubimov,

2008-09-25  Jürg Billeter  <j@bitron.ch>

	* vala/valastringliteral.vala:

	Fix processing of non-ASCII string literals,
	patch by Alexey Lubimov, fixes bug 547236

svn path=/trunk/; revision=1781
parent 0ee9bb3a
2008-09-25 Jürg Billeter <j@bitron.ch>
* vala/valastringliteral.vala:
Fix processing of non-ASCII string literals,
patch by Alexey Lubimov, fixes bug 547236
2008-09-25 Jürg Billeter <j@bitron.ch> 2008-09-25 Jürg Billeter <j@bitron.ch>
* vapi/packages/libsoup-2.2: * vapi/packages/libsoup-2.2:
......
...@@ -3,6 +3,7 @@ The Vala team would like to thank the following contributors: ...@@ -3,6 +3,7 @@ The Vala team would like to thank the following contributors:
Abderrahim Kitouni Abderrahim Kitouni
Alberto Ruiz Alberto Ruiz
Alexandre Moreira Alexandre Moreira
Alexey Lubimov
Ali Sabil Ali Sabil
Amos Brocco Amos Brocco
Andrea Del Signore Andrea Del Signore
......
...@@ -54,7 +54,7 @@ public class Vala.StringLiteral : Literal { ...@@ -54,7 +54,7 @@ public class Vala.StringLiteral : Literal {
} }
/* remove quotes */ /* remove quotes */
var noquotes = value.offset (1).ndup ((uint) (value.len () - 2)); var noquotes = value.substring (1, (uint) (value.len () - 2));
/* unescape string */ /* unescape string */
return noquotes.compress (); return noquotes.compress ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment