ports/deskutils/fbreader/files/patch-zlibrary__src__unix__iconv__IConvEncodingConverter.cpp
Andrew Pantyukhin 26a1d77bf6 Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
  OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
  koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
  books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
  English, Esperanto, French, German and Russian are included in the
  current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.

WWW: http://only.mawhrin.net/fbreader/
2007-04-21 17:18:45 +00:00

21 lines
740 B
C++

--- ./zlibrary/src/unix/iconv/IConvEncodingConverter.cpp.orig Tue Apr 17 22:53:30 2007
+++ ./zlibrary/src/unix/iconv/IConvEncodingConverter.cpp Sat Apr 21 18:50:56 2007
@@ -87,7 +87,7 @@
char *out = (char*)dst.data() + oldLength;
iconvlabel:
- iconv(myIConverter, &in, &inSize, &out, &outSize);
+ iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize);
if (inSize != 0) {
if (myBuffer.empty()) {
myBuffer.append(in, inSize);
@@ -126,7 +126,7 @@
inSize = 1;
outSize = 3;
inBuffer[0] = i;
- iconv(myIConverter, &in, &inSize, &out, &outSize);
+ iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize);
if (inSize == 0) {
ZLUnicodeUtil::Ucs2Char ch;
ZLUnicodeUtil::firstChar(ch, outBuffer);