diff options
author | corvid <corvid@lavabit.com> | 2009-05-15 22:08:10 -0400 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-05-15 22:08:10 -0400 |
commit | 1436c193233f3fb38b8c9f3fb9c8091e370a0738 (patch) | |
tree | c0a6b36afb61e990990f8a1c3fa4477fe1371643 /src/html.cc | |
parent | d7e0c535340fa9f77416b9de7f6887780944d898 (diff) |
Refactor: isolate calls to utf8 functions into a single source file.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/html.cc b/src/html.cc index 974b914c..3791a1e4 100644 --- a/src/html.cc +++ b/src/html.cc @@ -23,12 +23,11 @@ #include <math.h> /* for rint */ #include <errno.h> -#include <fltk/utf.h> /* for utf8encode */ - #include "bw.h" /* for BrowserWindow */ #include "msg.h" #include "binaryconst.h" #include "colors.h" +#include "utf8.hh" #include "misc.h" #include "uicmd.hh" @@ -1028,7 +1027,7 @@ char *a_Html_parse_entities(DilloHtml *html, const char *token, int toksize) toksize-i, &entsize)) >= 0) { if (isocode >= 128) { /* multibyte encoding */ - n = utf8encode(isocode, buf); + n = a_Utf8_encode(isocode, buf); for (k = 0; k < n; ++k) new_str[j++] = buf[k]; } else { @@ -3568,7 +3567,7 @@ static const char *Html_get_attr2(DilloHtml *html, tagsize-i, &entsize)) >= 0) { if (isocode >= 128) { char buf[4]; - int k, n = utf8encode(isocode, buf); + int k, n = a_Utf8_encode(isocode, buf); for (k = 0; k < n; ++k) dStr_append_c(Buf, buf[k]); } else { |