summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 1c8d8bd95..b2a46fc02 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -3825,12 +3825,10 @@ void ro_gui_window_prepare_pageinfo(struct gui_window *g)
sprintf(icon_buf, "file_xxx");
if (content_get_type(h) == CONTENT_HTML) {
- if (content_get_encoding(h)) {
- char enc_token[10] = "Encoding0";
- enc_token[8] = '0' + html_get_encoding_source(h);
+ if (content_get_encoding(h, CONTENT_ENCODING_NORMAL)) {
snprintf(enc_buf, sizeof enc_buf, "%s (%s)",
- content_get_encoding(h),
- messages_get(enc_token));
+ content_get_encoding(h, CONTENT_ENCODING_NORMAL),
+ content_get_encoding(h, CONTENT_ENCODING_SOURCE));
enc = enc_buf;
} else {
enc = messages_get("EncodingUnk");