Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 22 Oct 2023 11:31:44 UTC Commit: 17523e5f8ba6ac0c93290fac4ad64f23d005b3b1 https://github.com/geany/geany/commit/17523e5f8ba6ac0c93290fac4ad64f23d005b3...
Log Message: ----------- Do not show charset "None" in the list of encodings
The charset "None" would be shown for the encoding name "Without encoding" and so it would be rather redundant and the special value "None" should be translatable but isn't.
Closes #3624.
Modified Paths: -------------- src/encodings.c
Modified: src/encodings.c 5 lines changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -278,7 +278,10 @@ gchar *encodings_to_string(const GeanyEncoding* enc) g_return_val_if_fail(enc->name != NULL, NULL); g_return_val_if_fail(enc->charset != NULL, NULL);
- return g_strdup_printf("%s (%s)", enc->name, enc->charset); + if (enc->idx == GEANY_ENCODING_NONE) + return g_strdup(enc->name); // enc->charset is "None" and would be useless to display + else + return g_strdup_printf("%s (%s)", enc->name, enc->charset); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).