r5241 jmb - in /trunk/libparserutils/src/charset/codecs: codec_8859.c codec_ext8.c

netsurf at semichrome.net netsurf at semichrome.net
Fri Sep 5 09:09:05 BST 2008


Author: jmb
Date: Fri Sep  5 03:09:05 2008
New Revision: 5241

URL: http://source.netsurf-browser.org?rev=5241&view=rev
Log:
Fix encoding. Sigh.

Modified:
    trunk/libparserutils/src/charset/codecs/codec_8859.c
    trunk/libparserutils/src/charset/codecs/codec_ext8.c

Modified: trunk/libparserutils/src/charset/codecs/codec_8859.c
URL: http://source.netsurf-browser.org/trunk/libparserutils/src/charset/codecs/codec_8859.c?rev=5241&r1=5240&r2=5241&view=diff
==============================================================================
--- trunk/libparserutils/src/charset/codecs/codec_8859.c (original)
+++ trunk/libparserutils/src/charset/codecs/codec_8859.c Fri Sep  5 03:09:05 2008
@@ -531,11 +531,12 @@
 			else
 				out = '?';
 		} else {
-			out = c->table[i];
+			out = 0xA0 + i;
 		}	
 	}
 
-	*(*s++) = out;
+	*(*s) = out;
+	(*s)++;
 	(*len)--;
 
 	return PARSERUTILS_OK;

Modified: trunk/libparserutils/src/charset/codecs/codec_ext8.c
URL: http://source.netsurf-browser.org/trunk/libparserutils/src/charset/codecs/codec_ext8.c?rev=5241&r1=5240&r2=5241&view=diff
==============================================================================
--- trunk/libparserutils/src/charset/codecs/codec_ext8.c (original)
+++ trunk/libparserutils/src/charset/codecs/codec_ext8.c Fri Sep  5 03:09:05 2008
@@ -525,11 +525,12 @@
 			else
 				out = '?';
 		} else {
-			out = c->table[i];
+			out = 0x80 + i;
 		}	
 	}
 
-	*(*s++) = out;
+	*(*s) = out;
+	(*s)++;
 	(*len)--;
 
 	return PARSERUTILS_OK;




More information about the netsurf-commits mailing list