# HG changeset patch # User Matti Hamalainen # Date 1192849504 -10800 # Node ID 5ea2431c12bffc567b802eaf6c4438628400002d # Parent aad4dc862bc797d1fc7125d2f384b020b7b36e46 Handle Unicode/UTF-8 in tuple data. diff -r aad4dc862bc7 -r 5ea2431c12bf src/audacious/tuple_compiler.c --- a/src/audacious/tuple_compiler.c Sat Oct 20 06:04:33 2007 +0300 +++ b/src/audacious/tuple_compiler.c Sat Oct 20 06:05:04 2007 +0300 @@ -704,8 +704,9 @@ tmps2 = var0->fieldref->value.string; while (result && *tmps2 != '\0') { - if (*tmps2 == ' ') - tmps2++; + gunichar uc = g_utf8_get_char(tmps2); + if (g_unichar_isspace(uc)) + g_utf8_next_char(tmps2); else result = FALSE; }