[geary: 5/23] Use UTF8_CHARSET for methods that require one; Remove unused ASCII_CHARSET constant



commit be380b133e8eafb6fd5e252f5dd95ee7e997a78b
Author: Torben <torben letorbi gmail com>
Date:   Tue Dec 3 09:37:01 2019 +0100

    Use UTF8_CHARSET for methods that require one; Remove unused ASCII_CHARSET constant

 src/engine/rfc822/rfc822.vala | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/engine/rfc822/rfc822.vala b/src/engine/rfc822/rfc822.vala
index 39a400e5..5d648f7f 100644
--- a/src/engine/rfc822/rfc822.vala
+++ b/src/engine/rfc822/rfc822.vala
@@ -19,11 +19,6 @@ public enum TextFormat {
  */
 public const string UTF8_CHARSET = "UTF-8";
 
-/**
- * Official IANA charset encoding name for the ASCII  character set.
- */
-public const string ASCII_CHARSET = "US-ASCII";
-
 private int init_count = 0;
 
 internal Regex? invalid_filename_character_re = null;
@@ -50,7 +45,7 @@ public GMime.ParserOptions get_parser_options() {
 }
 
 public string? get_charset() {
-    return null;
+    return UTF8_CHARSET;
 }
 
 internal bool is_utf_8(string charset) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]