dasher r3673 - in trunk: . Src/DasherCore/Alphabet



Author: pwelche
Date: Sat Mar 14 22:06:19 2009
New Revision: 3673
URL: http://svn.gnome.org/viewvc/dasher?rev=3673&view=rev

Log:
Quieten message which is only useful for training text writers.


Modified:
   trunk/ChangeLog
   trunk/Src/DasherCore/Alphabet/Alphabet.cpp

Modified: trunk/Src/DasherCore/Alphabet/Alphabet.cpp
==============================================================================
--- trunk/Src/DasherCore/Alphabet/Alphabet.cpp	(original)
+++ trunk/Src/DasherCore/Alphabet/Alphabet.cpp	Sat Mar 14 22:06:19 2009
@@ -18,6 +18,9 @@
 // along with Dasher; if not, write to the Free Software 
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include "../../Common/Common.h"
 #include "../TrainingHelper.h"
 #include "Alphabet.h"
@@ -166,7 +169,10 @@
       len = m_utf8_count_array[ch];
       if (len == 0)
         {
-          std::cerr << "Read invalid UTF-8 character 0x" << ch << std::endl;
+#ifdef DEBUG
+          std::cerr << "Read invalid UTF-8 character 0x" << hex << ch
+                    << dec << std::endl;
+#endif
           in >> skip;
         }
       else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]