aboutsummaryrefslogtreecommitdiff
path: root/databases/pgadmin3-12/files
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2005-02-23 19:28:13 +0000
committerMax Khon <fjoe@FreeBSD.org>2005-02-23 19:28:13 +0000
commitdc0eeebdd19b46e8b6fa23a076dc76dd7c1f205f (patch)
treee07f01e9167a4cee7a8d40a00608a706449fad5a /databases/pgadmin3-12/files
parent571a68503131d4037ff08ba7c9dc5b9603e87b5f (diff)
downloadports-dc0eeebdd19b46e8b6fa23a076dc76dd7c1f205f.tar.gz
ports-dc0eeebdd19b46e8b6fa23a076dc76dd7c1f205f.zip
- Provide a patch that allows to build working non-Unicode version.
- Add back 4.x support (non-Unicode version only). - Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=129620
Diffstat (limited to 'databases/pgadmin3-12/files')
-rw-r--r--databases/pgadmin3-12/files/patch-src-utils-utffile.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/pgadmin3-12/files/patch-src-utils-utffile.cpp b/databases/pgadmin3-12/files/patch-src-utils-utffile.cpp
new file mode 100644
index 000000000000..ca3579afcf78
--- /dev/null
+++ b/databases/pgadmin3-12/files/patch-src-utils-utffile.cpp
@@ -0,0 +1,16 @@
+--- src/utils/utffile.cpp.orig Thu Feb 24 00:41:36 2005
++++ src/utils/utffile.cpp Thu Feb 24 00:41:18 2005
+@@ -83,7 +83,12 @@
+ if (decr)
+ Seek(-decr, wxFromCurrent);
+
+- m_conversion->MB2WC((wchar_t*)(wxChar*)wxStringBuffer(str, nLen), (const char*)buffer, (size_t)(nLen+1));
++#if wxUSE_UNICODE
++ size_t buf_len = nLen;
++#else
++ size_t buf_len = nLen * sizeof(wchar_t);
++#endif
++ m_conversion->MB2WC((wchar_t*)(wxChar*)wxStringBuffer(str, buf_len), (const char*)buffer, (size_t)(nLen+1));
+ }
+ else
+ str = (wxChar*)buffer;