Kaydet (Commit) c00a9dec authored tarafından Enrico Tröger's avatar Enrico Tröger

Fixed endless loop.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@577 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 1b0b22a2
...@@ -865,13 +865,14 @@ gchar *utils_convert_to_utf8(const gchar *buffer, gsize size, gchar **used_encod ...@@ -865,13 +865,14 @@ gchar *utils_convert_to_utf8(const gchar *buffer, gsize size, gchar **used_encod
gboolean check_current = FALSE; gboolean check_current = FALSE;
guint i; guint i;
if (g_get_charset((const gchar**)&locale_charset) == FALSE) // current locale is not UTF-8, we have to check this charset
check_current = TRUE; // current locale is not UTF-8, we have to check this charset check_current = ! g_get_charset((const gchar**)&locale_charset);
for (i = 0; i < GEANY_ENCODINGS_MAX; i++) for (i = 0; i < GEANY_ENCODINGS_MAX; i++)
{ {
if (check_current) if (check_current)
{ {
check_current = FALSE;
charset = locale_charset; charset = locale_charset;
i = -1; i = -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment