Below is the list of changes that have just been committed into a local
4.0 repository of jimw. When jimw does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2082 05/04/14 18:06:48 jimw@stripped +1 -0
Backport fix for escaping multibyte characters. (Bug #9864)
libmysql/libmysql.c
1.158 05/04/14 17:33:26 jimw@stripped +7 -9
Backport fix for escaping multibyte characters from 4.1
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: jimw
# Host: rama.(none)
# Root: /home/jimw/my/mysql-4.0-9864
--- 1.157/libmysql/libmysql.c 2004-11-04 21:06:54 -08:00
+++ 1.158/libmysql/libmysql.c 2005-04-14 17:33:26 -07:00
@@ -3221,11 +3221,10 @@
{
#ifdef USE_MB
int l;
- if (use_mb_flag && (l = my_ismbchar(charset_info, from, end)))
+ if (use_mb_flag && (l= my_mbcharlen(charset_info, *from)))
{
- while (l--)
- *to++ = *from++;
- from--;
+ *to++= '\\';
+ *to++= *from;
continue;
}
#endif
@@ -3293,12 +3292,11 @@
#ifdef USE_MB
{
int l;
- if (use_mb_flag && (l = my_ismbchar(mysql->charset, from, end)))
+ if (use_mb_flag && (l= my_mbcharlen(mysql->charset, *from)))
{
- while (l--)
- *to++ = *from++;
- from--;
- continue;
+ *to++= '\\';
+ *to++= *from;
+ continue;
}
}
#endif
| Thread |
|---|
| • bk commit into 4.0 tree (jimw:1.2082) BUG#9864 | Jim Winstead | 15 Apr |