Revision: 577 Author: eht16 Date: 2006-07-17 12:48:42 -0700 (Mon, 17 Jul 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=577&view=rev
Log Message: ----------- Fixed endless loop.
Modified Paths: -------------- trunk/src/utils.c Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2006-07-17 19:24:35 UTC (rev 576) +++ trunk/src/utils.c 2006-07-17 19:48:42 UTC (rev 577) @@ -865,13 +865,14 @@ gboolean check_current = FALSE; guint i;
- if (g_get_charset((const gchar**)&locale_charset) == FALSE) - check_current = TRUE; // current locale is not UTF-8, we have to check this charset + // 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++) { if (check_current) { + check_current = FALSE; charset = locale_charset; i = -1; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.