man page for vt-is-UTF8 --quiet is wrong

Bug #49031 reported by Graeme Hewson
4
Affects Status Importance Assigned to Milestone
console-tools (Debian)
Fix Released
Unknown
console-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

vt-is-UTF8(1) says:

      -q --quiet
              do not print on stdout in with mode we are, but return the state
              as exit-status 1 if in UTF8-mode, 0 if in byte-mode.

These conditions should be reversed: the exit status is 0 if in UTF8 mode.

The unicode_start and unicode_stop scripts do the right thing anyway, despite what vt-is-UTF8(1) says (remember, exit status 0 is "true" for shell script).

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

vt-is-UTF8 is part of the console-tools package. However, it may be difficult to change its behavior; scripts using console-tools before version x would need opposite behavior from those using console-tools after version x.

Revision history for this message
Colin Watson (cjwatson) wrote :

There's no need to change the behaviour of vt-is-UTF8; it makes perfect sense given the command name. It's just the documentation that's wrong.

I've forwarded this bug to Debian as http://bugs.debian.org/375693.

Changed in console-tools:
status: Unknown → Unconfirmed
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

This is still present in Intrepid (console-tools 1:0.2.3dbs-65.1ubuntu1). Attached find a debdiff which fixes the manpage. I didn't change the date on the manpage because the changes weren't substantial; if this is wrong, please let me know and I'll upload a fixed diff.

tags: added: bitesize manpages string-fix
Revision history for this message
Colin Watson (cjwatson) wrote :

Sorry for the long delay - I'm uploading this now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package console-tools - 1:0.2.3dbs-65.1ubuntu2

---------------
console-tools (1:0.2.3dbs-65.1ubuntu2) karmic; urgency=low

  * 999_ubuntu_vt-is-UTF8_manpage.patch: Fix manpage to properly document
    the --quiet option. (LP: #49031)

 -- Adam Buchbinder <email address hidden> Tue, 16 Jun 2009 17:31:29 +0100

Changed in console-tools (Ubuntu):
status: Confirmed → Fix Released
Changed in console-tools (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.