Deleted Added
full compact
setrunelocale.c (290494) setrunelocale.c (290618)
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 * Copyright (c) 2011 The FreeBSD Foundation

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

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#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 * Copyright (c) 2011 The FreeBSD Foundation

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

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/lib/libc/locale/setrunelocale.c 290494 2015-11-07 12:43:35Z bapt $");
39__FBSDID("$FreeBSD: head/lib/libc/locale/setrunelocale.c 290618 2015-11-09 22:06:22Z bapt $");
40
41#define __RUNETYPE_INTERNAL 1
42
43#include <runetype.h>
44#include <errno.h>
45#include <limits.h>
46#include <string.h>
47#include <stdio.h>

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

124 l->__mbrtowc = NULL;
125 l->__mbsinit = NULL;
126 l->__mbsnrtowcs = NULL;
127 l->__wcrtomb = NULL;
128 l->__wcsnrtombs = NULL;
129
130 rl->__sputrune = NULL;
131 rl->__sgetrune = NULL;
40
41#define __RUNETYPE_INTERNAL 1
42
43#include <runetype.h>
44#include <errno.h>
45#include <limits.h>
46#include <string.h>
47#include <stdio.h>

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

124 l->__mbrtowc = NULL;
125 l->__mbsinit = NULL;
126 l->__mbsnrtowcs = NULL;
127 l->__wcrtomb = NULL;
128 l->__wcsnrtombs = NULL;
129
130 rl->__sputrune = NULL;
131 rl->__sgetrune = NULL;
132 if (strncmp(rl->__encoding, "NONE", 4) == 0)
132 if (strcmp(rl->__encoding, "NONE:US-ASCII") == 0)
133 ret = _ascii_init(l, rl);
134 else if (strncmp(rl->__encoding, "NONE", 4) == 0)
133 ret = _none_init(l, rl);
134 else if (strcmp(rl->__encoding, "UTF-8") == 0)
135 ret = _UTF8_init(l, rl);
136 else if (strcmp(rl->__encoding, "EUC-CN") == 0)
137 ret = _EUC_CN_init(l, rl);
138 else if (strcmp(rl->__encoding, "EUC-JP") == 0)
139 ret = _EUC_JP_init(l, rl);
140 else if (strcmp(rl->__encoding, "EUC-KR") == 0)

--- 71 unchanged lines hidden ---
135 ret = _none_init(l, rl);
136 else if (strcmp(rl->__encoding, "UTF-8") == 0)
137 ret = _UTF8_init(l, rl);
138 else if (strcmp(rl->__encoding, "EUC-CN") == 0)
139 ret = _EUC_CN_init(l, rl);
140 else if (strcmp(rl->__encoding, "EUC-JP") == 0)
141 ret = _EUC_JP_init(l, rl);
142 else if (strcmp(rl->__encoding, "EUC-KR") == 0)

--- 71 unchanged lines hidden ---