Mailinglist Archive: opensuse-bugs (3349 mails)

< Previous Next >
[Bug 978993] Weird device node names in cfdisk
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 31 May 2016 20:04:11 +0000
  • Message-id: <bug-978993-21960-BXrvvJ8e1Q@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=978993
http://bugzilla.opensuse.org/show_bug.cgi?id=978993#c10

--- Comment #10 from Stanislav Brabec <sbrabec@xxxxxxxx> ---
Actually, the problem causes following code:

#if defined(HAVE_WIDECHAR)
if (!scols_table_is_ascii(tb) &&
!strcmp(nl_langinfo(CODESET), "UTF-8")) {
scols_symbols_set_branch(tb->symbols, UTF_VR UTF_H);
scols_symbols_set_vertical(tb->symbols, UTF_V " ");
scols_symbols_set_right(tb->symbols, UTF_UR UTF_H);
} else
#endif
{
scols_symbols_set_branch(tb->symbols, "|-");
scols_symbols_set_vertical(tb->symbols, "| ");
scols_symbols_set_right(tb->symbols, "`-");
}

In Leap 42.1 and SLE 12, configure gets a very strange config.h:
HAVE_LIBNCURSESW is not defined but HAVE_WIDECHAR is defined.

It causes a situation, where UTF-8 characters are passed to a a non-widechar
curses library. The mangling itself happens inside libncurses.

The error appears only in code, where ncurses and widechar are used together.
That is why lsblk uses the same part of code works OK.

It means, that an easy fix would change output of lsblk from

sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 40G 0 part /srv
└─sdb2 8:18 0 183.6G 0 part /home

to

sdb 8:16 0 223.6G 0 disk
|-sdb1 8:17 0 40G 0 part /srv
`-sdb2 8:18 0 183.6G 0 part /home

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References