Message ID | ZoUtNluFpgNqGzXB@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | expand: Preserve MBCHAR in argstr when EXP_MBCHAR is set | expand |
diff --git a/src/expand.c b/src/expand.c index 5285b79..93bb9a3 100644 --- a/src/expand.c +++ b/src/expand.c @@ -371,7 +371,7 @@ addquote: c = (signed char)*p--; mb = mbnext(p); ml = (mb >> 8) - 2; - if (flag & QUOTES_ESC) { + if (flag & (QUOTES_ESC | EXP_MBCHAR)) { length = (mb >> 8) + (mb & 0xff); if (c == (char)CTLESC) startloc += length;