diff options
-rw-r--r-- | common/modules/io.jsm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/modules/io.jsm b/common/modules/io.jsm index 96083c50..5ced4058 100644 --- a/common/modules/io.jsm +++ b/common/modules/io.jsm @@ -811,7 +811,14 @@ unlet s:cpo_save context.anchored = false; context.keys = { text: util.identity, - description: services.charset.getCharsetTitle + description: function (charset) { + try { + return services.charset.getCharsetTitle(charset); + } + catch (e) { + return charset; + } + } }; context.generate = function () iter(services.charset.getDecoderList()); }; |