forked from osmocom/wireshark
Fix bytes view pane showing non-ASCII chars
The bytes view pane in Qt is showing non-ASCII characters in the right-hand side. That's because the code is using isprint(), which is locale specific and frequently includes non-ascii charscters such as the copyright symbol and such. I wouldn't care, except some of those non-ASCII characters affects the font height and makes it looks sloppy (the display output is set to a fixed *width* font, but not fixed height font apparently). Change-Id: Idd471c5fb769d3d67aa08bc507d168e686d48098 Reviewed-on: https://code.wireshark.org/review/548 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
ee07cd9e24
commit
a6809ce9aa
|
@ -261,7 +261,7 @@ void ByteViewText::lineCommon(const int org_off)
|
|||
EBCDIC_to_ASCII1(pd[off]) :
|
||||
pd[off];
|
||||
|
||||
str += isprint(c) ? c : '.';
|
||||
str += g_ascii_isprint(c) ? c : '.';
|
||||
} else
|
||||
str += ' ';
|
||||
|
||||
|
|
Loading…
Reference in New Issue