Launchpad has imported 2 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=2568651.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers.

------------------------------------------------------------------------
On 2026-11-07T16:44:24+00:00 p wrote:

This is a fairly fundamental breakage introduced in 0.5.13
The fix from the URL above is a single line change:

diff --git a/src/expand.c b/src/expand.c
index 76e67ce..7ebb841 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -980,7 +980,7 @@ static size_t memtodest(const char *p, size_t len, int 
flags)
                p += count;
 
                syntax = flags & (QUOTES_ESC | EXP_MBCHAR) ?
-                        BASESYNTAX : is_type;
+                        BASESYNTAX : is_type + SYNBASE;
        } else
                syntax = SQSYNTAX;
 


Reproducible: Always

Steps to Reproduce:
1. $ bu=$(env printf '\xBF')
2. $ test "$bu" = "$(env printf '\xBF')" || echo mismatch
Actual Results:
"mismatch" is output

Expected Results:
no output

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/2173930/comments/0

------------------------------------------------------------------------
On 2026-11-07T16:47:46+00:00 p wrote:

Created attachment 2163114
Proposed fix

From
https://lore.kernel.org/dash/[email protected]/T/#u

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/2173930/comments/1


** Changed in: dash (Fedora)
       Status: Unknown => Confirmed

** Changed in: dash (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173930

Title:
  Variable expansion corruption with non ASCII bytes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/2173930/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to