logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

gettext-0.3.2-autopoint-parenthesis.patch (1475B)


  1. From 86d9b993d0e09d8f8788dcd18c308206a199a82a Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Sun, 21 Jan 2024 08:57:33 +0100
  4. Subject: [PATCH] =?UTF-8?q?autopoint:=20Fix=20unescaped=20parenthesis=20in?=
  5. =?UTF-8?q?=20${=E2=80=A6}?=
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. Upstream: https://github.com/sabotage-linux/gettext-tiny/commit/86d9b993d0e09d8f8788dcd18c308206a199a82a
  10. Tested against mksh 59c, dash 0.5.12 and bash 5.1_p16 on Gentoo Linux while
  11. in zbar-0.23.92 working directory.
  12. A quick `git grep '${.*('` doesn't leads to other scripts with similar issues.
  13. Closes: https://github.com/sabotage-linux/gettext-tiny/issues/65
  14. ---
  15. src/autopoint.in | 6 +++---
  16. 1 file changed, 3 insertions(+), 3 deletions(-)
  17. diff --git a/src/autopoint.in b/src/autopoint.in
  18. index ce41116..fd00afd 100755
  19. --- a/src/autopoint.in
  20. +++ b/src/autopoint.in
  21. @@ -15,13 +15,13 @@ dirprefix=""
  22. while read line
  23. do
  24. if [ "${line##*AC_CONFIG_AUX_DIR}" != "$line" ]; then
  25. - dirprefix="${line##*([}"
  26. - dirprefix="${dirprefix%%])*}"
  27. + dirprefix="${line##*'(['}"
  28. + dirprefix="${dirprefix%%'])'*}"
  29. mkdir -p "${dirprefix}"
  30. fi
  31. if [ "${line##*po/Makefile.in}" != "$line" ]; then
  32. - poprefix="${line##*[}"
  33. + poprefix="${line##*'['}"
  34. poprefix="${poprefix%%po/Makefile.in*}"
  35. install -D -m 644 @datadir@/data/autopoint_Makefile.in "./${poprefix}/po/Makefile.in.in"
  36. fi