[dasher: 4/61] Errors in training file should not stop dasher.
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 4/61] Errors in training file should not stop dasher.
- Date: Thu, 28 Dec 2017 10:02:55 +0000 (UTC)
commit ba39d7ef26b1a11b4d9e1ef4f299aeb9ef35aa29
Author: Ada Majorek <amajorek google com>
Date: Thu Mar 3 22:10:25 2016 -0800
Errors in training file should not stop dasher.
https://github.com/ipomoena/dasher/issues/91
Src/DasherCore/Alphabet/AlphabetMap.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/DasherCore/Alphabet/AlphabetMap.cpp b/Src/DasherCore/Alphabet/AlphabetMap.cpp
index adf4d50..6e94f32 100644
--- a/Src/DasherCore/Alphabet/AlphabetMap.cpp
+++ b/Src/DasherCore/Alphabet/AlphabetMap.cpp
@@ -116,7 +116,7 @@ inline int CAlphabetMap::SymbolStream::findNext() {
const char *msg(_("File ends with incomplete UTF-8 character beginning 0x%x (expecting %i bytes
but only %i)"));
char *mbuf(new char[strlen(msg) + 4]);
sprintf(mbuf, msg, static_cast<unsigned int>(buf[pos] & 0xff), numChars, len-pos);
- m_pMsgs->Message(mbuf,true);
+ m_pMsgs->Message(mbuf,false);
delete[] mbuf;
}
return 0;
@@ -127,7 +127,7 @@ inline int CAlphabetMap::SymbolStream::findNext() {
const char *msg(_("Read invalid UTF-8 character 0x%x"));
char *mbuf(new char[strlen(msg) + 2]);
sprintf(mbuf, msg, static_cast<unsigned int>(buf[pos] & 0xff));
- m_pMsgs->Message(mbuf,true);
+ m_pMsgs->Message(mbuf,false);
delete[] mbuf;
}
++pos;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]