<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.bin/localedef, branch releng/11.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F11.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F11.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2017-07-18T08:35:22Z</updated>
<entry>
<title>MFC r318257,r318278:</title>
<updated>2017-07-18T08:35:22Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-18T08:35:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dec09e6af601e07db949f85253bbe823e119d1d4'/>
<id>urn:sha1:dec09e6af601e07db949f85253bbe823e119d1d4</id>
<content type='text'>
r318257:

style(9): sort headers

r318278:

Mark errf _Noreturn, and mark errf and warn __printflike

The _Noreturn attribute was added to placate Coverity and other static
analysis tools. The __printflike attribute was added to catch issues
with the calls related to printf(3) abuse.

- Modify the code to facilitate the __printflike attribute addition.
- Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so
  the calls will return instead of exiting, as the code suggests it
  should.
</content>
</entry>
<entry>
<title>MFC r315170:</title>
<updated>2017-05-30T04:27:05Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-05-30T04:27:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fde48e2e4b01375fa3ff39d5a82ffdbb086d4daf'/>
<id>urn:sha1:fde48e2e4b01375fa3ff39d5a82ffdbb086d4daf</id>
<content type='text'>
r315170 (by imp):

Adopt SRCTOP in usr.bin

Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
over ${.CURDIR}/../foo for paths in Makefiles.

Silence on:		arch@ (twice)
</content>
</entry>
<entry>
<title>MFC r314974, r315006:</title>
<updated>2017-03-14T02:13:59Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-03-14T02:13:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c28b273d36e8a360e713d06b0a3676d62c0a9c6d'/>
<id>urn:sha1:c28b273d36e8a360e713d06b0a3676d62c0a9c6d</id>
<content type='text'>
localedef(1): Fix small coverity issues.

- Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
- Buffer not null terminated (BUFFER_SIZE_WARNING)

CID:	1338557, 1338565

Obtained from:	illumos
</content>
</entry>
<entry>
<title>MFC r306782-r306783</title>
<updated>2016-11-05T09:46:48Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2016-11-05T09:46:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ec99d4d6d8a9a2183b18427d7b68d2cb8ab315de'/>
<id>urn:sha1:ec99d4d6d8a9a2183b18427d7b68d2cb8ab315de</id>
<content type='text'>
r306782:
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:

  &lt;A&gt; ... &lt;C&gt;, &lt;H&gt;  (converts to &lt;A&gt; .. &lt;H&gt;)
  &lt;A&gt;, &lt;B&gt;, &lt;H&gt;     (converts to &lt;A&gt; .. &lt;H&gt;)
  &lt;A&gt;, &lt;J&gt; ... &lt;H&gt;  (converts to &lt;A&gt; .. &lt;H&gt;)

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 &lt;krader@skepticism.us&gt;
Obtained from:	Dragonfly
MFC after:	1 month

r306783:
localedef: Improve cc_list parsing

original commit log:
=====
I had originally suspected the parsing of ctype definition files as being
the source of the ctype flag mis-definitions, but it wasn't.  In the
process, I simplified the cc_list parsing so I'm committing the no-impact
improvement separately.  It removes some parsing redundancies and
won't parse partial range definitions anymore.
====

Submitted by:	marino
Obtained from:	Dragonfly
MFC after:	1 month
</content>
</entry>
<entry>
<title>MFC r303541, r303542, r303543, r303545, r303546, r303547, r304225, r304226, r304605, r304676, r305212, r305863:</title>
<updated>2016-10-21T03:10:05Z</updated>
<author>
<name>Marcelo Araujo</name>
<email>araujo@FreeBSD.org</email>
</author>
<published>2016-10-21T03:10:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=299ca967da464af24003a3e16d1759dff01db1ba'/>
<id>urn:sha1:299ca967da464af24003a3e16d1759dff01db1ba</id>
<content type='text'>
r303541:
Use nitems() from sys/param.h.

Sponsored by:	gandi.net (BSD Day Taiwan)
MFC after: 	2 weeks.

r303542:
Use nitems() from sys/param.h.

MFC after:	2 weeks.
Sponsored by:	gandi.net (BSD Day Taiwan)

r303543:
Use nitems() from sys/param.h.

MFC after:	2 weeks.
Sponsored by:	gandi.net (BSD Day Taiwan)

r303545:
Use nitems() from sys/param.h.

MFC after:	2 weeks.
Sponsored by:	gandi.net (BSD Day Taiwan)

r303546:
Use nitems() from sys/param.h.

MFC after:	2 weeks.
Sponsored by:	gandi.net (BSD Day Taiwan)

r303547:
Use nitems() from sys/param.h.

MFC after:	2 weeks.
Sponsored by:	gandi.net (BSD Day Taiwan)

r304225:
Use nitems() from sys/param.h.

MFC after:	2 weeks.

r304226:
Use nitems() from sys/param.h.

MFC after:	2 weeks.

r304605:
Fix calloc(3) argument order.

Reviewed by:	trasz
MFC after:	4 weeks.
Differential Revision:	https://reviews.freebsd.org/D7532

r304676:
Fix calloc(3) argument order.

MFC after:	4 weeks.

r305212:
- Invert calloc(3) argument order.

MFC after:	4 weeks

r305863:
Invert calloc(3) argument order.

Reviewed by:	ed.
MFC after:	4 weeks.
Differential Revision:	https://reviews.freebsd.org/D7902
</content>
</entry>
<entry>
<title>MFC r305813:</title>
<updated>2016-10-09T20:07:01Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-10-09T20:07:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1070f8aa3faed844f24cc0654cdbd7a4ef0e7a55'/>
<id>urn:sha1:1070f8aa3faed844f24cc0654cdbd7a4ef0e7a55</id>
<content type='text'>
localedef(1): make better use of calloc(3) arguments.

The first argument of calloc(3) should be an ordinal type, and the
second a size: split a multiplication to make better use of calloc(3)
and detect overflows.

Do some other re-ordering and style fixes while here.
</content>
</entry>
<entry>
<title>localedef(1): minor spelling fixes on comments.</title>
<updated>2016-05-01T16:10:56Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-05-01T16:10:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fcc7baa1ae504e353c4a87292fd851192705ad72'/>
<id>urn:sha1:fcc7baa1ae504e353c4a87292fd851192705ad72</id>
<content type='text'>
No functional change.
</content>
</entry>
<entry>
<title>Small typo.</title>
<updated>2016-04-28T15:20:08Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-04-28T15:20:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0b33b55b014e6098f1a20bf7416822e2ed73fb8a'/>
<id>urn:sha1:0b33b55b014e6098f1a20bf7416822e2ed73fb8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Plug memory leaks</title>
<updated>2016-04-20T21:23:42Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2016-04-20T21:23:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e6d8c0e2dd672496ae24a13bba674ee5442e631e'/>
<id>urn:sha1:e6d8c0e2dd672496ae24a13bba674ee5442e631e</id>
<content type='text'>
Reported by:	Coverity
CID=		1338535, 1338536, 1338542, 1338569, 1338570
</content>
</entry>
<entry>
<title>localedef(1): minor sorting to match Illumos.</title>
<updated>2016-03-20T03:27:06Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-03-20T03:27:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=046c3cda83ffa608af6ff51852d93ace8ec8658d'/>
<id>urn:sha1:046c3cda83ffa608af6ff51852d93ace8ec8658d</id>
<content type='text'>
Illumos recently included space in 'print' class. We already had
this but the code had slight sorting differences. Move it some
lines up to reduce diffs with Illumos.

No functional change.

Reference:
https://illumos.org/issues/5227
</content>
</entry>
</feed>
