X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=coreutils-fmt-wchars.patch;h=64748ea0ad5e51d1d78f27f7cf9bb7bc0b9dd0a2;hb=52ba0febd48b17828e55925bf4f1ec827a5e9d34;hp=a2ea5e6708ff1e22ce5320df274c05d10bdc01e0;hpb=c477e37d8b0e19395482a58f13ef4950a99f705d;p=packages%2Fcoreutils.git diff --git a/coreutils-fmt-wchars.patch b/coreutils-fmt-wchars.patch index a2ea5e6..64748ea 100644 --- a/coreutils-fmt-wchars.patch +++ b/coreutils-fmt-wchars.patch @@ -1,6 +1,6 @@ ---- coreutils-8.26/po/pl.po.orig 2017-02-08 09:48:16.712532143 +0000 -+++ coreutils-8.26/po/pl.po 2017-02-08 09:50:39.112530540 +0000 -@@ -4440,12 +4440,14 @@ +--- coreutils-8.19/po/pl.po.orig 2012-10-14 10:58:23.839244005 +0200 ++++ coreutils-8.19/po/pl.po 2012-10-14 11:00:38.809238341 +0200 +@@ -4497,13 +4497,15 @@ #, no-c-format msgid "" " -t, --tagged-paragraph indentation of first line different from second\n" @@ -11,11 +11,12 @@ " -g, --goal=WIDTH goal width (default of 93% of width)\n" msgstr "" " -t, --tagged-paragraph wcięcie pierwszej linii inne niż drugiej\n" - " -u, --uniform-spacing jedna spacja między słowami, dwie między zdaniami\n" + " -u, --uniform-spacing jedna spacja między słowami, dwie między " + "zdaniami\n" +" -n, --single-spaces pojedyncze spacje między zdaniami\n" - " -w, --width=SZEROKOŚĆ maksymalna SZEROKOŚĆ linii (domyślnie 75 kolumn)\n" + " -w, --width=SZEROKOŚĆ maksymalna SZEROKOŚĆ linii (domyślnie 75 " + "kolumn)\n" " -g, --goal=SZEROKOŚĆ docelowa SZEROKOŚĆ (domyślnie 93% of szerokości\n" - " linii)\n" --- coreutils-8.19/src/fmt.c.orig 2012-07-21 16:54:31.000000000 +0200 +++ coreutils-8.19/src/fmt.c 2012-10-14 11:02:27.109233796 +0200 @@ -17,6 +17,7 @@ @@ -96,9 +97,9 @@ /* Static attributes determined during input. */ -- const char *text; /* the text of the word */ +- char const *text; /* the text of the word */ - int length; /* length of this word */ -+ const wchar_t *text; /* the text of the word */ ++ wchar_t const *text; /* the text of the word */ + int length; /* length of this word, in characters */ + int width; /* width of this word, in columns */ int space; /* the size of the following space */ @@ -115,7 +116,7 @@ }; @@ -154,16 +175,16 @@ static void set_prefix (char *p); - static void fmt (FILE *f); + static bool fmt (FILE *f, char const *); static bool get_paragraph (FILE *f); -static int get_line (FILE *f, int c); -static int get_prefix (FILE *f); @@ -144,7 +145,7 @@ +static int sentence_space; + /* Prefix minus leading and trailing spaces (default ""). */ --static const char *prefix; +-static char const *prefix; +static wchar_t *prefix; /* User-supplied maximum line width (default WIDTH). The only output @@ -295,7 +296,7 @@ + *s = L'\0'; } - /* read file F and send formatted output to stdout. */ + /* Read F and send formatted output to stdout. @@ -550,24 +587,24 @@ static bool get_paragraph (FILE *f) @@ -337,8 +338,8 @@ +static wint_t +copy_rest (FILE *f, wint_t c) { -- const char *s; -+ const wchar_t *s; +- char const *s; ++ wchar_t const *s; out_column = 0; - if (in_column > next_prefix_indent || (c != '\n' && c != EOF)) @@ -464,8 +465,8 @@ prefix_lead_space : in_column; else { -- const char *p; -+ const wchar_t *p; +- char const *p; ++ wchar_t const *p; next_prefix_indent = in_column; - for (p = prefix; *p != '\0'; p++) + for (p = prefix; *p != L'\0'; p++) @@ -677,8 +678,8 @@ static void put_word (WORD *w) { -- const char *s; -+ const wchar_t *s; +- char const *s; ++ wchar_t const *s; int n; s = w->text;