Revision 109
| src/procmime.c (revision 109) | ||
|---|---|---|
| 863 | 863 |
g_snprintf(f_prefix, sizeof(f_prefix), "%08x.", id++); |
| 864 | 864 |
|
| 865 | 865 |
if (MIME_TEXT_HTML == mimeinfo->mime_type) |
| 866 |
base = "mimetmp.html";
|
|
| 866 |
base = g_strdup("mimetmp.html");
|
|
| 867 | 867 |
else {
|
| 868 | 868 |
const gchar *base_; |
| 869 |
|
|
| 869 | 870 |
base_ = mimeinfo->filename ? mimeinfo->filename |
| 870 | 871 |
: mimeinfo->name ? mimeinfo->name : "mimetmp"; |
| 871 | 872 |
base_ = g_basename(base_); |
| 872 | 873 |
if (*base_ == '\0') base_ = "mimetmp"; |
| 873 |
Xstrdup_a(base, base_, return NULL);
|
|
| 874 |
base = conv_filename_from_utf8(base_);
|
|
| 874 | 875 |
subst_for_filename(base); |
| 875 | 876 |
} |
| 876 | 877 |
|
| 877 | 878 |
filename = g_strconcat(get_mime_tmp_dir(), G_DIR_SEPARATOR_S, |
| 878 | 879 |
f_prefix, base, NULL); |
| 879 | 880 |
|
| 881 |
g_free(base); |
|
| 882 |
|
|
| 880 | 883 |
return filename; |
| 881 | 884 |
} |
| 882 | 885 |
|
| ChangeLog.ja (revision 109) | ||
|---|---|---|
| 1 |
2005-02-16 |
|
| 2 |
|
|
| 3 |
* src/procmime.c: procmime_get_tmp_file_name(): ?ե?????̾???ե????? |
|
| 4 |
?????ƥ२???ǥ????Ѵ??? |
|
| 5 |
|
|
| 1 | 6 |
2005-02-14 |
| 2 | 7 |
|
| 3 | 8 |
* src/intl.h: ?????? |
| ChangeLog (revision 109) | ||
|---|---|---|
| 1 |
2005-02-16 |
|
| 2 |
|
|
| 3 |
* src/procmime.c: procmime_get_tmp_file_name(): convert filename |
|
| 4 |
to filesystem encoding. |
|
| 5 |
|
|
| 1 | 6 |
2005-02-14 |
| 2 | 7 |
|
| 3 | 8 |
* src/intl.h: removed. |
Also available in: Unified diff