[dasher] Errors in training file should not stop dasher.
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher] Errors in training file should not stop dasher.
- Date: Thu, 21 Apr 2016 14:07:16 +0000 (UTC)
commit 18cf512775acdff8a4a3a25dda77faf9d9194699
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]