[Bug 238351] x11-clocks/xclock: xclock -strftime option misinterprets/mishandles the %n specification

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
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: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.