[Bug 238351] x11-clocks/xclock: xclock -strftime option misinterprets/mishandles the %n specification
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 5 22:06:32 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238351
Bug ID: 238351
Summary: x11-clocks/xclock: xclock -strftime option
misinterprets/mishandles the %n specification
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: x11 at FreeBSD.org
Reporter: rfg-freebsd at tristatelogic.com
Flags: maintainer-feedback?(x11 at FreeBSD.org)
Assignee: x11 at FreeBSD.org
When xclock is invoked with both the -digital and -strftime options, the man
page for xclock(1) suggests that the string given as the argument to the
-strftime option will be interpreted as if it were a format specification given
to the strftime() libc function.
This is mostly true with the exception of the %n (newline) conversion
specification, which is utterly mishandled by xclock. Instead of introducing a
newline at that point in the rendered digital xclock image, xclock instead
displays something that looks like an empty box character at the corresponding
point in the rendered digital xclock image.
This is just wrong, and it obviously violates the Principal of Least Surprise.
If the user has explicitly requested a newline at some certain point in the
format string, then he/she did so for a reason, and xclock should honor that
request by splitting the rendered digital xclock image across two (or more)
lines, exactly as the user had explicitly requested. There is no compelling
reason not to do so.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-x11
mailing list