From ca7710260ee10354443a68a9b910e6367170ef98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ladislav=20Slez=C3=A1k?= Date: Thu, 3 Aug 2017 20:20:03 +0200 Subject: [PATCH] fixed table formatting for non-ACSII characters (bsc#1051901) ::mbrtowc behavior has been changed in glibc-2.22 - version 0.5.1 --- VERSION | 2 +- client/utils/text.cc | 6 ++++++ dists/debian/changelog | 6 ++++++ package/snapper.changes | 7 +++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8f0916f7..4b9fcbec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/client/utils/text.cc b/client/utils/text.cc index a51697c5..e454110a 100644 --- a/client/utils/text.cc +++ b/client/utils/text.cc @@ -65,6 +65,9 @@ int mbs_width_e (const string & str) s_bytes -= c_bytes; ptr += c_bytes; + + // end of string + if (s_bytes == 0) break; } return s_cols; @@ -142,6 +145,9 @@ std::string mbs_substr_by_width( s_bytes -= c_bytes; ptr += c_bytes; + + // end of string + if (s_bytes == 0) break; } if (eptr == NULL) diff --git a/dists/debian/changelog b/dists/debian/changelog index 64951bcb..baec0fa1 100644 --- a/dists/debian/changelog +++ b/dists/debian/changelog @@ -1,3 +1,9 @@ +snapper (0.5.1) stable; urgency=low + + * Updated to version 0.5.1 + + -- Ladislav Slezák Thu, 03 Aug 2017 20:10:49 +0200 + snapper (0.5.0-0) stable; urgency=low * Updated to version 0.5.0 diff --git a/package/snapper.changes b/package/snapper.changes index 4ef96b59..2ed98f50 100644 --- a/package/snapper.changes +++ b/package/snapper.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 3 18:12:17 UTC 2017 - lslezak@suse.com + +- fixed table formatting for non-ACSII characters (bsc#1051901) + (::mbrtowc behavior has been changed in glibc-2.22) +- version 0.5.1 + ------------------------------------------------------------------- Tue May 09 13:52:46 CEST 2017 - aschnell@suse.com -- 2.47.3