Fix processing of non-ASCII string literals, patch by Alexey Lubimov,
authorJürg Billeter <j@bitron.ch>
Thu, 25 Sep 2008 13:29:59 +0000 (13:29 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 25 Sep 2008 13:29:59 +0000 (13:29 +0000)
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

ChangeLog
THANKS
vala/valastringliteral.vala

index 2f64669..f5573c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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>
+
        * vapi/packages/libsoup-2.2:
        * vapi/packages/libsoup-2.4:
 
diff --git a/THANKS b/THANKS
index 4c6c442..99ab0fa 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -3,6 +3,7 @@ The Vala team would like to thank the following contributors:
 Abderrahim Kitouni
 Alberto Ruiz
 Alexandre Moreira
+Alexey Lubimov
 Ali Sabil
 Amos Brocco
 Andrea Del Signore
index c6f666e..9f04701 100644 (file)
@@ -54,7 +54,7 @@ public class Vala.StringLiteral : Literal {
                }
                
                /* remove quotes */
-               var noquotes = value.offset (1).ndup ((uint) (value.len () - 2));
+               var noquotes = value.substring (1, (uint) (value.len () - 2));
                /* unescape string */
                return noquotes.compress ();
        }