aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.ja6
-rw-r--r--libsylph/codeconv.c4
3 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bac6f69f..ee73831e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-10-06
+ * libsylph/codeconv.c:
+ conv_filename_from_utf8(), conv_filename_to_utf8(): put an
+ assertion.
+
+2005-10-06
+
* libsylph/utils.c: don't define _s_tempnam() on Unix.
* src/prefs_folder_item.c: added file system path info.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index f5202399..28a2517c 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,11 @@
2005-10-06
+ * libsylph/codeconv.c:
+ conv_filename_from_utf8(), conv_filename_to_utf8(): assertion を
+ 追加。
+
+2005-10-06
+
* libsylph/utils.c: Unix では _s_tempnam() を定義しないようにした。
* src/prefs_folder_item.c: ファイルシステムのパス情報を追加。
diff --git a/libsylph/codeconv.c b/libsylph/codeconv.c
index 20378fb8..830ebcce 100644
--- a/libsylph/codeconv.c
+++ b/libsylph/codeconv.c
@@ -1981,6 +1981,8 @@ gchar *conv_filename_from_utf8(const gchar *utf8_file)
gchar *fs_file;
GError *error = NULL;
+ g_return_val_if_fail(utf8_file != NULL, NULL);
+
fs_file = g_filename_from_utf8(utf8_file, -1, NULL, NULL, &error);
if (error) {
g_warning("failed to convert encoding of file name: %s\n",
@@ -1998,6 +2000,8 @@ gchar *conv_filename_to_utf8(const gchar *fs_file)
gchar *utf8_file;
GError *error = NULL;
+ g_return_val_if_fail(fs_file != NULL, NULL);
+
utf8_file = g_filename_to_utf8(fs_file, -1, NULL, NULL, &error);
if (error) {
g_warning("failed to convert encoding of file name: %s\n",