changeset 4602:93b9364bd731

Automated merge with ssh://hg.atheme.org//hg/audacious
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jun 2008 19:24:47 +0300
parents a2cbde1af409 (current diff) 0a2255b9e80b (diff)
children fba10959a743
files
diffstat 4 files changed, 19 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/acinclude.m4	Wed Jun 04 12:36:25 2008 +0200
+++ b/acinclude.m4	Wed Jun 04 19:24:47 2008 +0300
@@ -82,18 +82,18 @@
 
 dnl ** Check for GNU make
 AC_DEFUN([AUD_CHECK_GNU_MAKE],[
-    AC_CACHE_CHECK([for GNU make],aud_gnu_make_command,[
-    aud_gnu_make_command=""
+    AC_CACHE_CHECK([for GNU make],cv_gnu_make_command,[
+    cv_gnu_make_command=""
     for a in "$MAKE" make gmake gnumake; do
         test "x$a" = "x" && continue
         if ( sh -c "$a --version" 2>/dev/null | grep "GNU Make" >/dev/null ) ; then
-            aud_gnu_make_command="$a"
+            cv_gnu_make_command="$a"
             break
         fi
     done
     ])
-    if test "x$aud_gnu_make_command" != "x" ; then
-        MAKE="$aud_gnu_make_command"
+    if test "x$cv_gnu_make_command" != "x" ; then
+        MAKE="$cv_gnu_make_command"
     else
         AC_MSG_ERROR([** GNU make not found. If it is installed, try setting MAKE environment variable. **])
     fi
--- a/src/audtool/audtool_handlers_playlist.c	Wed Jun 04 12:36:25 2008 +0200
+++ b/src/audtool/audtool_handlers_playlist.c	Wed Jun 04 19:24:47 2008 +0300
@@ -381,8 +381,8 @@
 		audtool_whine("invalid parameters for %s.", argv[0]);
 		audtool_whine("syntax: %s <fieldname> <position>", argv[0]);
 		audtool_whine("  - fieldname example choices include but are not limited to:");
-		audtool_whine("      artist, album, title, track_number, year, date,");
-		audtool_whine("      genre, comment, file_name, file_ext, file_path,");
+		audtool_whine("      artist, album, title, track-number, year, date,");
+		audtool_whine("      genre, comment, file-name, file-ext, file-path,");
 		audtool_whine("      length, formatter, custom, mtime");
 		exit(1);
 	}
--- a/src/audtool/audtool_handlers_vitals.c	Wed Jun 04 12:36:25 2008 +0200
+++ b/src/audtool/audtool_handlers_vitals.c	Wed Jun 04 19:24:47 2008 +0300
@@ -168,8 +168,8 @@
 		audtool_whine("invalid parameters for %s.", argv[0]);
 		audtool_whine("syntax: %s <fieldname>", argv[0]);
 		audtool_whine("  - fieldname example choices include but are not limited to:");
-		audtool_whine("      artist, album, title, track_number, year, date,");
-		audtool_whine("      genre, comment, file_name, file_ext, file_path,");
+		audtool_whine("      artist, album, title, track-number, year, date,");
+		audtool_whine("      genre, comment, file-name, file-ext, file-path,");
 		audtool_whine("      length, formatter, custom, mtime");
 		exit(1);
 	}
--- a/src/libaudclient/audctrl.c	Wed Jun 04 12:36:25 2008 +0200
+++ b/src/libaudclient/audctrl.c	Wed Jun 04 19:24:47 2008 +0300
@@ -1028,16 +1028,23 @@
     if (G_IS_VALUE(&value) == FALSE)
         return NULL;
 
+    /* I think the original "purpose" of using g_strescape() here
+     * has probably been to escape only \n, \t, \r, etc. but the function
+     * actually escapes all non-ASCII characters. Which is bad, since we
+     * are using UTF-8.  -- ccr
+     */
     if (G_VALUE_HOLDS_STRING(&value))
-        s = g_strescape(g_value_get_string(&value), NULL);
+        //s = g_strescape(g_value_get_string(&value), NULL);
+        s = g_strdup(g_value_get_string(&value));
     else if (g_value_type_transformable(G_VALUE_TYPE(&value), G_TYPE_STRING))
     {
         GValue tmp_value = { 0, };
 
         g_value_init(&tmp_value, G_TYPE_STRING);
         g_value_transform(&value, &tmp_value);
-
-        s = g_strescape(g_value_get_string(&tmp_value), NULL);
+        
+        //s = g_strescape(g_value_get_string(&tmp_value), NULL);
+        s = g_strdup(g_value_get_string(&tmp_value));
 
         g_value_unset(&tmp_value);
     }