2007-12-10 Alexander Larsson <alexl@redhat.com>
* gfile.c (g_file_set_display_name):
Don't hardcode '/' (#502727)
svn path=/trunk/; revision=6084
+2007-12-10 Alexander Larsson <alexl@redhat.com>
+
+ * gfile.c (g_file_set_display_name):
+ Don't hardcode '/' (#502727)
+
2007-12-09 Hans Breuer <hans@breuer.org>
* makefile.msc : follow lib naming convention
g_return_val_if_fail (G_IS_FILE (file), NULL);
g_return_val_if_fail (display_name != NULL, NULL);
- if (strchr (display_name, '/') != NULL)
+ if (strchr (display_name, G_DIR_SEPARATOR) != NULL)
{
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_INVALID_ARGUMENT,
- _("File names cannot contain '/'"));
+ _("File names cannot contain '%c'"), G_DIR_SEPARATOR);
return NULL;
}