diff options
author | mezz <mezz@FreeBSD.org> | 2007-04-03 00:57:48 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2007-04-03 00:57:48 +0800 |
commit | a10cdc0f9c205c26d0cc10db4811aa1d3397afa2 (patch) | |
tree | f292c22070df88b016fb19265193baff091bfc59 /net-p2p | |
parent | 0fda3a25923342911cca1295a55da0755d08aced (diff) | |
download | freebsd-ports-gnome-a10cdc0f9c205c26d0cc10db4811aa1d3397afa2.tar.gz freebsd-ports-gnome-a10cdc0f9c205c26d0cc10db4811aa1d3397afa2.tar.zst freebsd-ports-gnome-a10cdc0f9c205c26d0cc10db4811aa1d3397afa2.zip |
Catch up with the latest CVS, fix the charset/locale stuff. Bump the
PORTREVISION.
Bug tracker: http://tinyurl.com/2hrvgn (berlios.de)
Obtained from: LinuxDC++ CVS
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/linuxdcpp/Makefile | 1 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/files/patch-client_Text.cpp | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/net-p2p/linuxdcpp/Makefile b/net-p2p/linuxdcpp/Makefile index 35cc9757a73f..4e6dcf1e8ed9 100644 --- a/net-p2p/linuxdcpp/Makefile +++ b/net-p2p/linuxdcpp/Makefile @@ -7,6 +7,7 @@ PORTNAME= linuxdcpp PORTVERSION= 0.0.1.20070324 #0.0.1.YYYYMMDD +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://people.freebsd.org/~mezz/distfiles/ diff --git a/net-p2p/linuxdcpp/files/patch-client_Text.cpp b/net-p2p/linuxdcpp/files/patch-client_Text.cpp new file mode 100644 index 000000000000..959bd01da306 --- /dev/null +++ b/net-p2p/linuxdcpp/files/patch-client_Text.cpp @@ -0,0 +1,32 @@ +=================================================================== +RCS file: /cvsroot/linuxdcpp/linuxdcpp/client/Text.cpp,v +retrieving revision 1.15 +retrieving revision 1.16 +diff -u -r1.15 -r1.16 +--- client/Text.cpp 2007/03/24 18:33:17 1.15 ++++ client/Text.cpp 2007/03/28 00:03:12 1.16 +@@ -25,6 +25,7 @@ + #ifndef _WIN32 + #include <errno.h> + #include <iconv.h> ++#include <langinfo.h> + + #ifndef ICONV_CONST + #define ICONV_CONST +@@ -38,12 +39,16 @@ + void Text::initialize() { + setlocale(LC_ALL, ""); + ++#ifdef _WIN32 + char *ctype = setlocale(LC_CTYPE, NULL); + if(ctype) { + systemCharset = string(ctype); + } else { + dcdebug("Unable to determine the program's locale"); + } ++#else ++ systemCharset = string(nl_langinfo(CODESET)); ++#endif + } + + int Text::utf8ToWc(const char* str, wchar_t& c) { |