diff options
author | John Thacker <johnthacker@gmail.com> | 2020-07-05 07:35:57 -0400 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2020-07-06 14:21:41 +0000 |
commit | 9fc054a65bfadf40325bb4f5185c7247ed4a9a6c (patch) | |
tree | dcd88b46d14e6da77ff575c8edfb77bf32fe106c /ui/qt/main_window.h | |
parent | 23cb6959c1405806a211062e14d49a3c1aa8ad92 (diff) |
Add all supported charsets to Show Packet Bytes/Follow Stream
Use the QT text codec support to add charset conversions for all character
encodings supported by QT to Show Packet Bytes and Follow Stream (Save As
will convert to UTF-8.) Note that this is dynamic and the exact list will
depend on the version of QT and if libicu support is enabled. This does
make the list of codecs pretty long, so hopefully it shows up well on all
the different QT styles.
This does not yet support when multibyte characters span more than one packet
in Follow Stream, though the current code doesn't do that for UTF-8 or UTF-16
already. This is probably most useful for HTTP captures.
Bug: 16137
Change-Id: I6d5cd761a5d9d914b7a787fe8eb02b07b19642e6
Ping-Bug: 16630
Reviewed-on: https://code.wireshark.org/review/37707
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r-- | ui/qt/main_window.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index 478e3d0846..e1125c816b 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -183,6 +183,7 @@ private: DisplayFilterCombo *df_combo_box_; CaptureFile capture_file_; QFont mono_font_; + QMap<QString, QTextCodec *> text_codec_map_; #if defined(HAVE_LIBNL) && defined(HAVE_NL80211) WirelessFrame *wireless_frame_; #endif @@ -257,6 +258,8 @@ private: bool testCaptureFileClose(QString before_what, FileCloseContext context = Default); void captureStop(); + void findTextCodecs(); + void initMainToolbarIcons(); void initShowHideMainWidgets(); void initTimeDisplayFormatMenu(); |