summaryrefslogtreecommitdiff
path: root/misc/tellico
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2007-01-12 11:08:49 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2007-01-12 11:08:49 +0000
commit832ffa796aa1d498c82f82ff2f42b04a6154dfa4 (patch)
tree1fa398deb88557ec797cfec57b8b52209d29450c /misc/tellico
parentupdate to 1.92 (diff)
Fix build breakage most probably caused by the last update of net/yaz.
Submitted by: pointyhat via kris
Notes
Notes: svn path=/head/; revision=182191
Diffstat (limited to 'misc/tellico')
-rw-r--r--misc/tellico/files/patch-src-fetch-z3950connection.cpp34
-rw-r--r--misc/tellico/files/patch-src-fetch-z3950connection.h11
2 files changed, 45 insertions, 0 deletions
diff --git a/misc/tellico/files/patch-src-fetch-z3950connection.cpp b/misc/tellico/files/patch-src-fetch-z3950connection.cpp
new file mode 100644
index 000000000000..992ec806426f
--- /dev/null
+++ b/misc/tellico/files/patch-src-fetch-z3950connection.cpp
@@ -0,0 +1,34 @@
+--- src/fetch/z3950connection.cpp.orig Thu Jan 11 18:50:07 2007
++++ src/fetch/z3950connection.cpp Fri Jan 12 11:13:31 2007
+@@ -340,16 +340,16 @@
+
+ inline
+ QCString Z3950Connection::toCString(const QString& text_) {
+- return iconv(text_.utf8(), QString::fromLatin1("utf-8"), m_sourceCharSet);
++ return iConv(text_.utf8(), QString::fromLatin1("utf-8"), m_sourceCharSet);
+ }
+
+ inline
+ QString Z3950Connection::toString(const QCString& text_) {
+- return QString::fromUtf8(iconv(text_, m_sourceCharSet, QString::fromLatin1("utf-8")));
++ return QString::fromUtf8(iConv(text_, m_sourceCharSet, QString::fromLatin1("utf-8")));
+ }
+
+ // static
+-QCString Z3950Connection::iconv(const QCString& text_, const QString& fromCharSet_, const QString& toCharSet_) {
++QCString Z3950Connection::iConv(const QCString& text_, const QString& fromCharSet_, const QString& toCharSet_) {
+ #if HAVE_YAZ
+ if(text_.isEmpty()) {
+ return text_;
+@@ -365,9 +365,9 @@
+ QString charSetLower = fromCharSet_.lower();
+ charSetLower.remove('-').remove(' ');
+ if(charSetLower == Latin1Literal("iso5426")) {
+- return iconv(Iso5426Converter::toUtf8(text_).utf8(), QString::fromLatin1("utf-8"), toCharSet_);
++ return iConv(Iso5426Converter::toUtf8(text_).utf8(), QString::fromLatin1("utf-8"), toCharSet_);
+ } else if(charSetLower == Latin1Literal("iso6937")) {
+- return iconv(Iso6937Converter::toUtf8(text_).utf8(), QString::fromLatin1("utf-8"), toCharSet_);
++ return iConv(Iso6937Converter::toUtf8(text_).utf8(), QString::fromLatin1("utf-8"), toCharSet_);
+ }
+ kdWarning() << "Z3950Fetcher::iconv() - conversion from " << fromCharSet_
+ << " to " << toCharSet_ << " is unsupported" << endl;
diff --git a/misc/tellico/files/patch-src-fetch-z3950connection.h b/misc/tellico/files/patch-src-fetch-z3950connection.h
new file mode 100644
index 000000000000..6789cb7b21ef
--- /dev/null
+++ b/misc/tellico/files/patch-src-fetch-z3950connection.h
@@ -0,0 +1,11 @@
+--- src/fetch/z3950connection.h.orig Fri Jan 12 11:14:04 2007
++++ src/fetch/z3950connection.h Fri Jan 12 11:14:17 2007
+@@ -85,7 +85,7 @@
+ void abort() { m_aborted = true; }
+
+ private:
+- static QCString iconv(const QCString& text, const QString& fromCharSet, const QString& toCharSet);
++ static QCString iConv(const QCString& text, const QString& fromCharSet, const QString& toCharSet);
+ static QString toXML(const QCString& marc, const QString& fromCharSet);
+
+ bool makeConnection();