Author: turnstep
Date: Thu Dec 20 09:37:55 2007
New Revision: 10445

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
Super quick reminder/hack to fix this up, per bug report.


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Thu Dec 20 09:37:55 2007
@@ -1407,6 +1407,11 @@
 
        while (1) {
 
+               /* Quick hack, will work on this more later: */
+               if (ch < 0) {
+                       croak("Invalid string - utf-8 problem?");
+               }
+
                /* Are we done processing this string? */
                if (ch < 1) {
                        break;

Reply via email to