diff options
Diffstat (limited to 'net/dictd/files/patch-break-utf8')
-rw-r--r-- | net/dictd/files/patch-break-utf8 | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/net/dictd/files/patch-break-utf8 b/net/dictd/files/patch-break-utf8 index b36b99d874f0..a1a30e1d431c 100644 --- a/net/dictd/files/patch-break-utf8 +++ b/net/dictd/files/patch-break-utf8 @@ -19,31 +19,13 @@ } static void init (const char *fn) ---- index.c.orig Mon Mar 10 01:06:16 2003 -+++ index.c Fri Oct 10 00:20:22 2003 -@@ -123,6 +123,10 @@ - const char *src, char *dest, - int allchars_mode) - { -+#include <osreldate.h> -+#if __FreeBSD_version < 500000 -+ abort(); -+#else - wchar_t ucs4_char; - size_t len; - int len2; -@@ -154,6 +158,7 @@ - *dest = 0; - - return (src != NULL); -+#endif - } - - static void dict_table_init(void) -@@ -200,9 +205,11 @@ +--- index.c.orig Mon Jan 26 02:52:14 2004 ++++ index.c Mon Jan 26 03:02:18 2004 +@@ -144,9 +144,12 @@ p[i] = &s[2 * i]; } /* Sort those strings in the locale */ ++#include <osreldate.h> +#if __FreeBSD_version > 499999 if (utf8_mode) qsort(p, UCHAR_MAX + 1, sizeof(p[0]), dict_table_init_compare_utf8); @@ -52,7 +34,7 @@ qsort(p, UCHAR_MAX + 1, sizeof(p[0]), dict_table_init_compare_strcoll); /* Extract our unordered arrays */ -@@ -1258,6 +1265,9 @@ +@@ -1245,6 +1248,9 @@ */ static int stranagram_utf8 (char *str) { @@ -62,11 +44,11 @@ size_t len; char *p; -@@ -1280,6 +1290,7 @@ +@@ -1267,6 +1273,7 @@ stranagram_8bit (str, -1); return 1; +#endif } + #endif - /* makes anagram of utf-8 string 'str' */ |