Minor bug fixes.
authordrepper <drepper>
Mon, 1 Dec 1997 17:01:30 +0000 (17:01 +0000)
committerdrepper <drepper>
Mon, 1 Dec 1997 17:01:30 +0000 (17:01 +0000)
iconvdata/t61.c

index 915b672..c5bbc42 100644 (file)
@@ -489,6 +489,10 @@ gconv (struct gconv_step *step, struct gconv_step_data *data,
                        ch = L'\0';
                      else
                        ch = to_ucs4_comb[inchar - 0xc1][inchar2 - 0x20];
+
+                     if (ch == L'\0')
+                       /* Undo the increment for illegal characters.  */
+                       --cnt;
                    }
                  else
                    ch = to_ucs4[inchar];