Use %hs instead of %s in bin/ps for it to correctly output locale specific date/time (at least).
Details
Details
- Reviewers
phil - Commits
- rS361887: ps: use %hs instead of %s format specifiers
Compare output of LC_ALL=uk_UA.UTF-8 ps -o lstart and LC_ALL=uk_UA.KOI8-U ps -o lstart | iconv -f koi8-u. Also reproducer from the PR.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The "%hs" bits look good, but why do you add the call to xo_no_setlocale()?
Thanks,
Phil