Changelog
Source:NEWS.md
utf8 1.2.6 (2025-06-08)
Continuous integration
- Enhance permissions for workflow (#77).
utf8 1.2.5 (2025-05-01)
CRAN release: 2025-05-01
Features
- Strict argument checking for
utf8_format()
andutf8_print()
, no extra arguments allowed.
Chore
Replace
[v]sprintf()
with[v]snprintf()
(#67).Add direct include for
snprintf()
(@MichaelChirico, #43).Add ellipsis before optional args (#74).
utf8 1.2.3 (2023-01-30)
CRAN release: 2023-01-31
Chore
Update maintainer e-mail address.
Fix compiler warnings (@Antonov548, #37).
utf8 1.2.2 (2021-07-24)
CRAN release: 2021-07-24
- Reenable all tests.
-
utf8_width()
now reports correct widths for narrow emojis (#9).
utf8 1.2.1 (2021-03-10)
CRAN release: 2021-03-12
- Use Unicode and Emoji standards version 13.0 via upgrade to latest
utf8lite
. - Silence test on macOS.
utf8 1.1.3 (2018-01-03)
CRAN release: 2018-01-03
MINOR IMPROVEMENTS
Make
output_utf8()
always returnTRUE
on Windows, so that characters in the user’s native locale don’t get escaped byutf8_encode()
. The downside of this change is that on Windows,utf8_width()
reports the wrong values for characters outside the user’s locale whenstdout()
is redirected byknitr
or another process.When truncating long strings strings via
utf8_format()
, use an ellipsis that is printable in the user’s native locale ("\u2026" or
“…”`).
utf8 1.1.2 (2017-12-14)
CRAN release: 2017-12-14
BUG FIXES
- Fix bug in
utf8_format()
with non-NULL
width
argument.
utf8 1.1.0 (2017-11-20)
CRAN release: 2017-11-20
NEW FEATURES
- Added
output_ansi()
andoutput_utf8()
functions to test for output capabilities.
MINOR IMPROVEMENTS
Add
utf8
argument toutf8_encode()
,utf8_format()
,utf8_print()
, andutf8_width()
for precise control over assumed output capabilities; defaults to the result ofoutput_utf8()
.Add ability to style backslash escapes with the
escapes
arguments toutf8_encode()
andutf8_print()
. Switch from “faint” styling to no styling by default.Slightly reword error messages for
as_utf8()
.Fix (spurious)
rchk
warnings.
BUG FIXES
- Fix bug in
utf8_width()
determining width of non-ASCII strings whenLC_CTYPE=C
.
DEPRECATED AND DEFUNCT
- No longer export the C version of
as_utf8()
(the R version is still present).
utf8 1.0.0 (2017-11-06)
CRAN release: 2017-11-07
NEW FEATURES
Split off functions
as_utf8()
,utf8_valid()
,utf8_normalize()
,utf8_encode()
,utf8_format()
,utf8_print()
, andutf8_width()
from corpus package.Added special handling for Unicode grapheme clusters in formatting and width measurement functions.
Added ANSI styling to escape sequences.
Added ability to style row and column names in
utf8_print()
.