Commit 5afb7222 authored by unknown's avatar unknown
Browse files

ctype-big5.c:

  additional fix for bug@10493, for sjis
ctype-cp932.c:
  additional fix for bug#10493, for cp932


strings/ctype-cp932.c:
  additional fix for bug#10493, for cp932
strings/ctype-big5.c:
  additional fix for bug@10493, for sjis
parent d4432343
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6285,7 +6285,7 @@ uint my_well_formed_len_big5(CHARSET_INFO *cs __attribute__((unused)),
  const char *emb= e - 1; /* Last possible end of an MB character */

  *error= 0;
  while (pos && b < e)
  while (pos-- && b < e)
  {
    if ((uchar) b[0] < 128)
    {
+1 −1
Original line number Diff line number Diff line
@@ -5417,7 +5417,7 @@ uint my_well_formed_len_cp932(CHARSET_INFO *cs __attribute__((unused)),
{
  const char *b0= b;
  *error= 0;
  while (pos && b < e)
  while (pos-- && b < e)
  {
    /*
      Cast to int8 for extra safety.