]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
last: improve non-UTF8 locale output after libxo support was added
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sun, 10 Oct 2021 07:16:59 +0000 (09:16 +0200)
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Mon, 11 Oct 2021 17:02:12 +0000 (19:02 +0200)
commit8da27052535b816096dd28debe5bbbad3dcf4ea4
tree8c5d34fbf6ada5e4a09d4bfb40fef4bbb0fa8b1e
parent902cde5d0a620a502468a95f7eecf1098e96bdcc
last: improve non-UTF8 locale output after libxo support was added

Some strftime(3) conversion specifications will generate strings encoded
with the current locale, not necessarily UTF8. As per xo_format.5, use
the h string modifier so that libxo interprets it appropriately.

Reviewed by: eugen, philip
Differential Revision: https://reviews.freebsd.org/D32437
usr.bin/last/last.c