From de2af681ea4c58809d423909ab6ca14bd28d11d5 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Mon, 23 Nov 2009 01:04:28 +0000 Subject: [PATCH] DiskProbe : In is_valid_utf8(): * Also accept CR and TAB as valid chars to be copied in clipboard. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34193 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/DataView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/diskprobe/DataView.cpp b/src/apps/diskprobe/DataView.cpp index a134a61c7f..845f170ff6 100644 --- a/src/apps/diskprobe/DataView.cpp +++ b/src/apps/diskprobe/DataView.cpp @@ -45,7 +45,9 @@ is_valid_utf8(uint8 *data, size_t size) if ((data[i] & 0x80) == 0) { // a single byte character - if (data[i] < ' ' && data[i] != 0x0a || data[i] == 0x7f) + if (data[i] < ' ' + && data[i] != 0x0d && data[i] != 0x09 && data[i] != 0x0a + || data[i] == 0x7f) return false; continue;