From c8d6cba3c6ad6945afd6a3ea3f301d63199f25ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Thu, 25 Feb 2016 23:49:29 +0800 Subject: [PATCH] Add missing patch --- debian/patches/series | 1 + debian/patches/unicode-grep.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 debian/patches/series create mode 100644 debian/patches/unicode-grep.patch diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7ab0073 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +unicode-grep.patch diff --git a/debian/patches/unicode-grep.patch b/debian/patches/unicode-grep.patch new file mode 100644 index 0000000..5edcd49 --- /dev/null +++ b/debian/patches/unicode-grep.patch @@ -0,0 +1,22 @@ +Author: Eduard Sanou +Description: Fix misdetection as binary input when LC_ALL=C + +--- lximage-qt-0.4.0+20160108.orig/cmake/LXQtTranslateDesktop.cmake ++++ lximage-qt-0.4.0+20160108/cmake/LXQtTranslateDesktop.cmake +@@ -71,13 +71,13 @@ function(lxqt_translate_desktop _RESULT) + set(_pattern "'\\[.*]\\s*='") + if (_translations) + add_custom_command(OUTPUT ${_outFile} +- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} +- COMMAND grep -h ${_pattern} ${_translations} >> ${_outFile} ++ COMMAND grep -a -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} ++ COMMAND grep -a -h ${_pattern} ${_translations} >> ${_outFile} + COMMENT "Generating ${_fileName}${_fileExt}" + ) + else() + add_custom_command(OUTPUT ${_outFile} +- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} ++ COMMAND grep -a -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} + COMMENT "Generating ${_fileName}${_fileExt}" + ) + endif()