diff options
author | Max Khon <fjoe@FreeBSD.org> | 2005-02-23 19:28:13 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2005-02-23 19:28:13 +0000 |
commit | dc0eeebdd19b46e8b6fa23a076dc76dd7c1f205f (patch) | |
tree | e07f01e9167a4cee7a8d40a00608a706449fad5a /databases/pgadmin3-12/files | |
parent | 571a68503131d4037ff08ba7c9dc5b9603e87b5f (diff) | |
download | ports-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.cpp | 16 |
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; |