gjs r100 - trunk/gjs
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r100 - trunk/gjs
- Date: Wed, 12 Nov 2008 21:29:10 +0000 (UTC)
Author: johan
Date: Wed Nov 12 21:29:10 2008
New Revision: 100
URL: http://svn.gnome.org/viewvc/gjs?rev=100&view=rev
Log:
Call g_filename_from_utf8 in gjs_string_to_filename, since we're converting from a filename to a native string. Same swap mistake was done in g_filename_to_utf8
Modified:
trunk/gjs/jsapi-util-string.c
Modified: trunk/gjs/jsapi-util-string.c
==============================================================================
--- trunk/gjs/jsapi-util-string.c (original)
+++ trunk/gjs/jsapi-util-string.c Wed Nov 12 21:29:10 2008
@@ -122,7 +122,7 @@
}
error = NULL;
- filename_string = g_filename_to_utf8(tmp, -1, NULL, NULL, &error);
+ filename_string = g_filename_from_utf8(tmp, -1, NULL, NULL, &error);
if (error) {
gjs_throw(context,
"Could not convert filename '%s' to UTF8: '%s'",
@@ -150,8 +150,8 @@
gchar *utf8_string;
error = NULL;
- utf8_string = g_filename_from_utf8(filename_string, n_bytes, NULL,
- &written, &error);
+ utf8_string = g_filename_to_utf8(filename_string, n_bytes, NULL,
+ &written, &error);
if (error) {
gjs_throw(context,
"Could not convert UTF-8 string '%s' to a filename: '%s'",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]