X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=coreutils-fmt-wchars.patch;fp=coreutils-fmt-wchars.patch;h=83e5a23f8660f2b79114d2faca119f4f0551127a;hb=883185514495b925bc76f6a9e096def4e72b28b5;hp=2bd45598c81f3d028f55527297990472c659231d;hpb=d2e32af9cdc46552739eeb23420793cd13511132;p=packages%2Fcoreutils.git diff --git a/coreutils-fmt-wchars.patch b/coreutils-fmt-wchars.patch index 2bd4559..83e5a23 100644 --- a/coreutils-fmt-wchars.patch +++ b/coreutils-fmt-wchars.patch @@ -83,11 +83,11 @@ diff -ur coreutils-7.6.org/src/fmt.c coreutils-7.6/src/fmt.c + /* Extra ctype(3)-style macros. */ --#define isopen(c) (strchr ("([`'\"", c) != NULL) +-#define isopen(c) (strchr ("(['`\"", c) != NULL) -#define isclose(c) (strchr (")]'\"", c) != NULL) -#define isperiod(c) (strchr (".?!", c) != NULL) +#define isopen(c) \ -+ (wcschr (L"([`'\"\u2018\u201A\u201B\u201C\u201E\u201F", c) != NULL) ++ (wcschr (L"(['`\"\u2018\u201A\u201B\u201C\u201E\u201F", c) != NULL) +#define isclose(c) (wcschr (L")]'\"\u2018\u2019\u201C\u201D", c) != NULL) +#define isperiod(c) (wcschr (L".?!", c) != NULL) @@ -589,10 +589,10 @@ diff -ur coreutils-7.6.org/src/fmt.c coreutils-7.6/src/fmt.c + start->line_width = wid; } -- /* This is a kludge to keep us from computing `len' as the +- /* This is a kludge to keep us from computing 'len' as the - sum of the sentinel length and some non-zero number. - Since the sentinel w->length may be INT_MAX, adding -+ /* This is a kludge to keep us from computing `wid' as the ++ /* This is a kludge to keep us from computing 'wid' as the + sum of the sentinel width and some non-zero number. + Since the sentinel w->width may be INT_MAX, adding to that would give a negative result. */