hrev54166 adds 1 changeset to branch 'master'
old head: 2e6ca31c5a5985bb35a9f25145f2e2303746426e
new head: 8bb5fd243743acca90bc9fc0a3c03abee5f674f5
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=8bb5fd243743+%5E2e6ca31c5a59
----------------------------------------------------------------------------
8bb5fd243743: StyledText translator: use a larger buffer for encoding detection
It may be the case that a file is largely ASCII with few UTF-8 or
similar characters (typically, english text mentionning names in other
languages). It turns out 2 kilobytes of text is not enough for a safe
guess in that case.
Fixes #14674
Change-Id: Id894bebb821c22a17b776a71822d011abc795dea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2628
Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>
[ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev54166
Commit: 8bb5fd243743acca90bc9fc0a3c03abee5f674f5
URL: https://git.haiku-os.org/haiku/commit/?id=8bb5fd243743
Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date: Sat May 9 15:09:41 2020 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sat May 9 19:34:22 2020 UTC
Ticket: https://dev.haiku-os.org/ticket/14674
----------------------------------------------------------------------------
1 file changed, 1 insertion(+), 1 deletion(-)
src/add-ons/translators/stxt/STXTTranslator.cpp | 2 +-
----------------------------------------------------------------------------
diff --git a/src/add-ons/translators/stxt/STXTTranslator.cpp
b/src/add-ons/translators/stxt/STXTTranslator.cpp
index eeb4e39460..7a8f82c5e8 100644
--- a/src/add-ons/translators/stxt/STXTTranslator.cpp
+++ b/src/add-ons/translators/stxt/STXTTranslator.cpp
@@ -33,7 +33,7 @@ using namespace std;
#define B_TRANSLATION_CONTEXT "STXTTranslator"
#define READ_BUFFER_SIZE 32768
-#define DATA_BUFFER_SIZE 2048
+#define DATA_BUFFER_SIZE 8192
// The input formats that this translator supports.
static const translation_format sInputFormats[] = {