Package: joe Version: 4.6-1 Severity: normal Tags: upstream patch X-Debbugs-Cc: z...@debian.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Upstream has a fix in their repo for the annoying segfault in the encoding prompt (Ctrl-t e <start to type> <tab> BOOM). https://sourceforge.net/p/joe-editor/bugs/391/ https://sourceforge.net/p/joe-editor/mercurial/ci/72ca4cecf0aef6348287f5541c03c5a34c87226c/ Attached is a debdiff (trivial import of the commit as a quilt patch) which fixes the issue for me. Please consider adding this patch until a new upstream version is released. Cheers, gregor - -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'unstable-debug'), (500, 'stable-security'), (500, 'oldoldstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C, LC_CTYPE=de_AT.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages joe depends on: ii libc6 2.33-1 ii libtinfo6 6.3-1 joe recommends no packages. joe suggests no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmHTmrlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgbbyRAAglpD9v5aSY70hpknZ3M4lMLxGPEfXyvhkPOK7RV80Sp3+m6482AHwZ8f PQt9KzG3+6LD4RgSu2FuW6jNSxH4u5nJA1Wz5MuuPmMdcjc9ylwyPBvfkniJf2Mw gCR69Lzt2Sct2kyt/SCl1xV2eXRckOLTyMNXMXmWsvNP6UiE8LwK7n/NFI+lSv+d PAeBTK7Hyi2749WeIDSg5lnML/gK1DTGVrFaiOtNwvqgIi/3meetnwTD66Szze5u g/PQwi831Ai+z1jsA5zhevz/f5gRuPZFz4UOFvo5oom7D6k9mZyJHW1e4skI6iA/ 6A82bkbkVckfCpQySWzhUumT3bxoarHO648RvI3kBxKIG1CkWDdG+2ySs9I8Panb NNfuDIRECqe76CWzF5vV05OnEIKNeTfZoviqoM8k1OLz4ioNAb+Qo0KbD9G8totL jkrXSw6iJWMZBne7bCwchXl32YvdMCwDw1vJPSwtmEHhVtmJlkQL/Y5Dc8VFq6QE lez3gs7JiuEBJ8H5DP7fJgwO3h60+QRPXb8szq6JkW2XmhlkzFyerFRWvFOffslq G161BZco28H350wXWJK/NegMVXiW5R/3pY2VD9YaN3JSCUo+nok37aXAKxwZ0Y/o Xnls/zVuBBG0KLIc/2hVdhjAgAYDol3+DU6mFZo8HoCK2Mjby6Q= =nrjn -----END PGP SIGNATURE-----
diff -Nru joe-4.6/debian/changelog joe-4.6/debian/changelog --- joe-4.6/debian/changelog 2018-02-17 21:10:49.000000000 +0100 +++ joe-4.6/debian/changelog 2022-01-04 01:46:39.000000000 +0100 @@ -1,3 +1,10 @@ +joe (4.6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add patch from upstream repo to fix crash at encoding prompt. + + -- gregor herrmann <gre...@debian.org> Tue, 04 Jan 2022 01:46:39 +0100 + joe (4.6-1) unstable; urgency=low * New upstream version, closes: #887435. diff -Nru joe-4.6/debian/patches/005_crash_encoding_completion.patch joe-4.6/debian/patches/005_crash_encoding_completion.patch --- joe-4.6/debian/patches/005_crash_encoding_completion.patch 1970-01-01 01:00:00.000000000 +0100 +++ joe-4.6/debian/patches/005_crash_encoding_completion.patch 2022-01-04 01:46:34.000000000 +0100 @@ -0,0 +1,59 @@ +Description: Fix "Completion at encoding prompt crashes" +Origin: https://sourceforge.net/p/joe-editor/mercurial/ci/72ca4cecf0aef6348287f5541c03c5a34c87226c/ +Bug: https://sourceforge.net/p/joe-editor/bugs/391/ + +--- a/joe/options.c ++++ b/joe/options.c +@@ -1011,7 +1011,7 @@ + /* Load first from global (NOTE: Order here does not matter.) */ + if (!chpwd(buf) && (t = rexpnd(wildcard))) { + for (x = 0; x < aLEN(t); ++x) { +- *zrchr(t[x], '.') = 0; ++ if (extension) *zrchr(t[x], '.') = 0; + for (y = 0; y < aLEN(ary); ++y) + if (!zcmp(t[x], ary[y])) + break; +@@ -1020,6 +1020,7 @@ + } + + varm(t); ++ t = NULL; + } + } + +@@ -1031,7 +1032,7 @@ + + if (!chpwd(buf) && (t = rexpnd(wildcard))) { + for (x = 0; x < aLEN(t); ++x) { +- *zrchr(t[x],'.') = 0; ++ if (extension) *zrchr(t[x],'.') = 0; + for (y = 0; y < aLEN(ary); ++y) + if (!zcmp(t[x],ary[y])) + break; +@@ -1040,6 +1041,7 @@ + } + + varm(t); ++ t = NULL; + } + } + } +@@ -1050,7 +1052,7 @@ + t = jgetbuiltins(wildcard); + + for (x = 0; x < aLEN(t); ++x) { +- *zrchr(t[x], '.') = 0; ++ if (extension) *zrchr(t[x], '.') = 0; + for (y = 0; y < aLEN(ary); ++y) + if (!zcmp(t[x], ary[y])) + break; +@@ -1058,6 +1060,9 @@ + ary = vaadd(ary, vsncpy(NULL, 0, sv(t[x]))); + } + } ++ ++ varm(t); ++ t = NULL; + } + + varm(t); diff -Nru joe-4.6/debian/patches/series joe-4.6/debian/patches/series --- joe-4.6/debian/patches/series 2016-11-06 14:42:00.000000000 +0100 +++ joe-4.6/debian/patches/series 2022-01-04 01:43:57.000000000 +0100 @@ -2,3 +2,4 @@ 002_mail_jsf_ugly.patch 003_setlocale_codeset.patch 004_debcontrol_syntax.patch +005_crash_encoding_completion.patch