History log of /freebsd-current/contrib/netbsd-tests/lib/libc/locale/t_mbstowcs.c
Revision Date Author Comments
# adeebb83 16-Nov-2018 Yuri Pankov <yuripv@FreeBSD.org>

Make mbstowcs_basic test pass, now that we have more ctype definitions.

Reported by: jenkins
Approved by: kib (mentor, implicit)


# c7edf4fd 06-Oct-2016 Baptiste Daroussin <bapt@FreeBSD.org>

localedef: Fix ctype dump (fixed wide spread errors)

This commit is from John Marino in dragonfly with the following commit log:

====
This was a CTYPE encoding error involving consecutive points of the same
ctype. It was reported by myself to Illumos over a year ago but I was
unsure if it was only happening on BSD. Given the cause, the bug is also
present on Illumos.

Basically, if consecutive points were of the exact same ctype, they would
be defined as a range regardless. For example, all of these would be
considered equivalent:

<A> ... <C>, <H> (converts to <A> .. <H>)
<A>, <B>, <H> (converts to <A> .. <H>)
<A>, <J> ... <H> (converts to <A> .. <H>)

So all the points that shouldn't have been defined got "bridged" by the
extreme points.

The effects were recently reported to FreeBSD on PR 213013. There are
countless places were the ctype flags are misdefined, so this is a major
fix that has to be MFC'd.
====

This reveals a bad change I did on the testsuite: while 0x07FF is a valid
unicode it is not used yet (reserved for future use)

PR: 213013
Submitted by: marino@
Reported by: Kurtis Rader <krader@skepticism.us>
Obtained from: Dragonfly
MFC after: 1 month


# eb5cdd01 02-Nov-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Push the FreeBSD changes under a specific #ifdef to easier tracking what needs
to be upstreamed.


# 9ff4faf0 02-Nov-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Fix regression test on multibytes

0x07FF and 0x0800 are valid multibyte characters:
'DOUBLE QUESTION MARK' and 'QUESTION EXCLAMATION MARK'


# 5e0069c6 11-Aug-2015 Jilles Tjoelker <jilles@FreeBSD.org>

Fix and re-enable UTF-8 tests.


# ff0ba872 17-Nov-2014 Enji Cooper <ngie@FreeBSD.org>

Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with
their #ifdef equivalents for everything changed in contrib/netbsd-tests. There
are some items from the vendor tree that use #if defined(__FreeBSD__) or
#if defined(__NetBSD__) which are being left alone

Requested by: bde, rpaulo
Sponsored by: EMC / Isilon Storage Division


# effc3698 12-Oct-2014 Enji Cooper <ngie@FreeBSD.org>

Do initial port of contrib/netbsd-tests/lib/libc/locale

t_io:
- Expect failures potentially related to implementation-specific knowledge of
the zh_TW.Big5 locale [*]

t_mbrtowc:
- Handle unknown locales more gracefully (do not test if the locale doesn't
exist)
- Expect failure with mbrtowc_internal dealing with Japanese locales
(potentially related to implementation detail knowledge of the ja_* locales) [*].

t_mbstowcs, t_mbtowc, t_wctomb:
- Handle unknown locales more gracefully (do not test if the locale doesn't
exist)

t_wcstod:
- Treat FreeBSD like NetBSD and Linux in the XXX: FIXME section

[*] More investigation is required to determine the root cause of the failures

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division