After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664689 - valac considers "\v" (vertical tab) an invalid escape sequence
valac considers "\v" (vertical tab) an invalid escape sequence
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Semantic Analyzer
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on: 664830
Blocks:
 
 
Reported: 2011-11-24 00:39 UTC by Travis Reitter
Modified: 2016-09-20 10:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add support for the \v escape charactor (2.28 KB, patch)
2016-09-19 07:43 UTC, Rico Tzschichholz
committed Details | Review

Description Travis Reitter 2011-11-24 00:39:43 UTC
I just ran into the following problem:

simple-query.vala:32.56-32.56: error: invalid escape sequence
  private const string _whitespace_chars = " \f\n\r\t\v";
                                                       ^
\v isn't exactly the most important escape sequence, but it's a member of isspace(3), so it's probably good to support it for compatibility sake.
Comment 1 Luca Bruno 2011-11-24 18:56:07 UTC
It must be supported by g_strescape first.
Comment 2 geert jordaens 2013-05-04 19:38:53 UTC
Depends on upstream glib issue:

Bug 664830 g_strescape doesn't natively handle \v (vertical tab)
Comment 3 Rico Tzschichholz 2016-09-19 07:43:05 UTC
Created attachment 335843 [details] [review]
Add support for the \v escape charactor
Comment 4 Rico Tzschichholz 2016-09-20 10:13:00 UTC
Attachment 335843 [details] pushed as 57441df - Add support for the \v escape charactor