summaryrefslogtreecommitdiff
path: root/databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-07-11 15:17:38 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-07-11 15:17:38 +0000
commit86a3c3874b8382e43d1ac708ef9c43bdc8f2648e (patch)
tree92f7994ac8f06bc3a83384dc099fbb9043c6ba46 /databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp
parent- Update to 9.8.k (diff)
- Update to 177909
PR: 177909 Submitted by: ports fury
Diffstat (limited to 'databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp')
-rw-r--r--databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp b/databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp
new file mode 100644
index 000000000000..f8e0d2fa40c0
--- /dev/null
+++ b/databases/mysql-workbench52/files/patch-plugins__migration__copytable__copytable.cpp
@@ -0,0 +1,20 @@
+--- plugins/migration/copytable/copytable.cpp.orig
++++ plugins/migration/copytable/copytable.cpp
+@@ -555,7 +555,7 @@
+ //log_debug3("Convert string with %i chars to buffer size %i\n", inbuf_len, outbuf_len);
+
+ // convert data from UCS-2 to utf-8
+-#ifdef _WIN32
++#if defined(_WIN32) || defined(__FreeBSD__)
+ converted = iconv(_iconv,
+ (const char**)&inbuf, &inbuf_len,
+ (char**)&outbuf, &outbuf_len);
+@@ -617,7 +617,7 @@
+ //log_debug3("Convert string with %i chars to buffer size %i\n", inbuf_len, outbuf_len);
+
+ // convert data from UCS-2 to utf-8
+-#ifdef _WIN32
++#if defined(_WIN32) || defined(__FreeBSD__)
+ converted = iconv(_iconv,
+ (const char**)&inbuf, &inbuf_len,
+ (char**)&outbuf, &outbuf_len);