diff options
Diffstat (limited to 'meta-oe/recipes-extended/tcsh/files/tcsh-6.17.02-multibyte.patch')
-rw-r--r-- | meta-oe/recipes-extended/tcsh/files/tcsh-6.17.02-multibyte.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/tcsh/files/tcsh-6.17.02-multibyte.patch b/meta-oe/recipes-extended/tcsh/files/tcsh-6.17.02-multibyte.patch new file mode 100644 index 000000000..7f3e92624 --- /dev/null +++ b/meta-oe/recipes-extended/tcsh/files/tcsh-6.17.02-multibyte.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Author: Jean-Luc Leger <reiga@dspnet.fr.eu.org> | ||
2 | Description: fix broken globbing expansion | ||
3 | Debian-Bug: #603545 | ||
4 | --- a/tc.str.c | ||
5 | +++ b/tc.str.c | ||
6 | @@ -104,8 +104,9 @@ rt_mbtowc(Char *pwc, const char *s, size_t n) | ||
7 | |||
8 | memset (&mb, 0, sizeof mb); | ||
9 | ret = mbrtowc(&tmp, s, n, &mb); | ||
10 | - if (ret > 0) { | ||
11 | + if (ret >= 0) | ||
12 | *pwc = tmp; | ||
13 | + if (ret > 0) { | ||
14 | #ifdef UTF16_STRINGS | ||
15 | if (tmp >= 0xd800 && tmp <= 0xdbff) { | ||
16 | /* UTF-16 surrogate pair. Fetch second half and compute | ||