[Bug 950869] New: Misaligned table header in zypper table formatting
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869 Bug ID: 950869 Summary: Misaligned table header in zypper table formatting Classification: openSUSE Product: openSUSE Factory Version: 2015* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: ma@suse.com Reporter: schwab@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The columns in the table header are misaligned if the output is redirected to a tty. $ rpm -q zypper zypper-1.12.16-1.1.x86_64 $ zypper lr # | Alias | Name | Enabled | GPG Check | Refresh --------------------+-----------------+-----------------+-----------------------+----------------------------+-------- 1 | factory | factory | Yes | (r ) Yes | Yes 2 | factory-debug | factory-debug | Yes | (r ) Yes | Yes 3 | factory-non-oss | factory-non-oss | Yes | (r ) Yes | Yes $ zypper lr | cat # | Alias | Name | Enabled | GPG Check | Refresh --+-----------------+-----------------+---------+-----------+-------- 1 | factory | factory | Yes | (r ) Yes | Yes 2 | factory-debug | factory-debug | Yes | (r ) Yes | Yes 3 | factory-non-oss | factory-non-oss | Yes | (r ) Yes | Yes -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869
http://bugzilla.novell.com/show_bug.cgi?id=950869#c1
Michael Andres
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869
http://bugzilla.novell.com/show_bug.cgi?id=950869#c2
Andreas Schwab
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869
http://bugzilla.novell.com/show_bug.cgi?id=950869#c3
--- Comment #3 from Michael Andres
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869
http://bugzilla.novell.com/show_bug.cgi?id=950869#c4
--- Comment #4 from Michael Andres
cout << mbrtowc( &wc, "a", 0, &ps ) << endl; It used to return 0 if a 0 size was passed, now it's 'size_t(-2)'.
Zypper falls back to use plain string sizes, thus MB and ANSI SGR sequences cause miss-alignment. Using 'zypper --no-color' or output to non-terminal should give correct results aslong as not MB sequences are involved. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=950869
http://bugzilla.novell.com/show_bug.cgi?id=950869#c5
--- Comment #5 from Andreas Schwab
participants (1)
-
bugzilla_noreply@novell.com