ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / sed / wchar_t.patch
blob8aed6e1303767bf93dddfe31d4799b378ffb590a
1 --- sed/lib/regex_internal.h~ 2005-01-28 01:07:57.000000000 -0800
2 +++ sed/lib/regex_internal.h 2005-05-30 11:09:06.000000000 -0700
3 @@ -705,7 +705,11 @@
5 unsigned char ch;
6 unsigned char *name;
7 +#ifdef RE_ENABLE_I18N
8 wchar_t wch;
9 +#else
10 + char wch;
11 +#endif
12 } opr;
13 } bracket_elem_t;
15 --- sed/lib/regcomp.c~ 2005-01-28 01:07:52.000000000 -0800
16 +++ sed/lib/regcomp.c 2005-05-30 11:08:45.000000000 -0700
17 @@ -863,7 +863,12 @@
18 dfa->state_table = calloc (sizeof (struct re_state_table_entry), table_size);
19 dfa->state_hash_mask = table_size - 1;
21 +#ifdef RE_ENABLE_I18N
22 dfa->mb_cur_max = MB_CUR_MAX;
23 +#else
24 + dfa->mb_cur_max = 1;
25 +#endif
27 #ifdef _LIBC
28 if (dfa->mb_cur_max == 6
29 && strcmp (_NL_CURRENT (LC_CTYPE, _NL_CTYPE_CODESET_NAME), "UTF-8") == 0)