Page MenuHomeFreeBSD

Use iconv to ensure the output of calendar respects the output encoding
ClosedPublic

Authored by bapt on Feb 17 2019, 10:56 AM.
Tags
None
Referenced Files
F87090292: D19221.diff
Sat, Jun 29, 5:31 AM
Unknown Object (File)
Thu, Jun 27, 2:52 PM
Unknown Object (File)
Fri, Jun 21, 3:41 PM
Unknown Object (File)
Sat, Jun 1, 9:06 AM
Unknown Object (File)
May 24 2024, 6:48 PM
Unknown Object (File)
May 5 2024, 9:14 PM
Unknown Object (File)
May 4 2024, 4:10 AM
Unknown Object (File)
May 1 2024, 9:03 AM
Subscribers

Details

Summary

Use iconv to ensure the output of calendar respects the output encoding

Test Plan

tested with french and russian calendars

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22538
Build 21679: arc lint + arc unit

Event Timeline

jilles added inline comments.
usr.bin/calendar/calendar.c
90–95

Perhaps nl_langinfo(CODESET) is better than hard-coding the locale name format.

usr.bin/calendar/events.c
83

Style: the open brace should be on a line by itself.

198

This strdup is unnecessary. The pointer can be saved instead and freed after the asprintf.

bapt marked an inline comment as done.

Fix style

bapt marked 2 inline comments as done.Feb 17 2019, 3:44 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 20 2019, 6:41 AM
This revision was automatically updated to reflect the committed changes.