From 640b756a7fa8ea7704e37a19d21d90a820e1ccbf Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Thu, 6 Dec 2018 11:49:14 +0100 Subject: [PATCH] Temporarily allow localization brackets in key names Must be revised when introducing proper localization support. --- src/core/desktopfile/desktopfilereader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/desktopfile/desktopfilereader.cpp b/src/core/desktopfile/desktopfilereader.cpp index 3b25d86..f2503a7 100644 --- a/src/core/desktopfile/desktopfilereader.cpp +++ b/src/core/desktopfile/desktopfilereader.cpp @@ -101,7 +101,10 @@ namespace linuxdeploy { (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || - (c == '-') + (c == '-') || + // FIXME: remove this hack after introducing localization support to + // conform to desktop file spec again + (c == '[') || (c == ']') )) throw ParseError("Key contains invalid character " + std::string{c}); }