Update it to the lastest version of CVS, at 2007-05-06 in changelog. See in

the changelog for details:

	http://tinyurl.com/b3myl
This commit is contained in:
Jeremy Messenger 2007-05-25 04:37:39 +00:00
parent f0ba370938
commit fa49941cdb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191713
3 changed files with 4 additions and 37 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= linuxdcpp
PORTVERSION= 0.0.1.20070324 #0.0.1.YYYYMMDD
PORTREVISION= 2
PORTVERSION= 0.0.1.20070506 #0.0.1.YYYYMMDD
CATEGORIES= net-p2p
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~mezz/distfiles/

View File

@ -1,3 +1,3 @@
MD5 (linuxdcpp-0.0.1.20070324.tar.bz2) = a0863ca477e247dfaf305d23d3133a56
SHA256 (linuxdcpp-0.0.1.20070324.tar.bz2) = 646704ac7cd668505766195eea17765ad979ddba931e3f0074c42c7214459050
SIZE (linuxdcpp-0.0.1.20070324.tar.bz2) = 349574
MD5 (linuxdcpp-0.0.1.20070506.tar.bz2) = ca64aa4af4f0ce689da7ebcc60b6ce10
SHA256 (linuxdcpp-0.0.1.20070506.tar.bz2) = 69107e6f599cb5f18ee5a15bf4449ab01f1f133066fc19958c79a95b407aa617
SIZE (linuxdcpp-0.0.1.20070506.tar.bz2) = 347627

View File

@ -1,32 +0,0 @@
===================================================================
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) {