Deleted Added
full compact
setrunelocale.c (172619) setrunelocale.c (175553)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 17 unchanged lines hidden (view full) ---

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 17 unchanged lines hidden (view full) ---

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/lib/libc/locale/setrunelocale.c 172619 2007-10-13 16:28:22Z ache $");
34__FBSDID("$FreeBSD: head/lib/libc/locale/setrunelocale.c 175553 2008-01-21 23:48:12Z ache $");
35
36#include <runetype.h>
37#include <errno.h>
38#include <limits.h>
39#include <string.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <unistd.h>

--- 78 unchanged lines hidden (view full) ---

121 __mbsinit = NULL;
122 __mbsnrtowcs = __mbsnrtowcs_std;
123 __wcrtomb = NULL;
124 __wcsnrtombs = __wcsnrtombs_std;
125 rl->__sputrune = NULL;
126 rl->__sgetrune = NULL;
127 if (strcmp(rl->__encoding, "NONE") == 0)
128 ret = _none_init(rl);
35
36#include <runetype.h>
37#include <errno.h>
38#include <limits.h>
39#include <string.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <unistd.h>

--- 78 unchanged lines hidden (view full) ---

121 __mbsinit = NULL;
122 __mbsnrtowcs = __mbsnrtowcs_std;
123 __wcrtomb = NULL;
124 __wcsnrtombs = __wcsnrtombs_std;
125 rl->__sputrune = NULL;
126 rl->__sgetrune = NULL;
127 if (strcmp(rl->__encoding, "NONE") == 0)
128 ret = _none_init(rl);
129 else if (strcmp(rl->__encoding, "ASCII") == 0)
130 ret = _ascii_init(rl);
129 else if (strcmp(rl->__encoding, "UTF-8") == 0)
130 ret = _UTF8_init(rl);
131 else if (strcmp(rl->__encoding, "EUC") == 0)
132 ret = _EUC_init(rl);
133 else if (strcmp(rl->__encoding, "GB18030") == 0)
134 ret = _GB18030_init(rl);
135 else if (strcmp(rl->__encoding, "GB2312") == 0)
136 ret = _GB2312_init(rl);

--- 42 unchanged lines hidden ---
131 else if (strcmp(rl->__encoding, "UTF-8") == 0)
132 ret = _UTF8_init(rl);
133 else if (strcmp(rl->__encoding, "EUC") == 0)
134 ret = _EUC_init(rl);
135 else if (strcmp(rl->__encoding, "GB18030") == 0)
136 ret = _GB18030_init(rl);
137 else if (strcmp(rl->__encoding, "GB2312") == 0)
138 ret = _GB2312_init(rl);

--- 42 unchanged lines hidden ---