aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-20 08:00:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-20 08:00:06 +0000
commitb77806dd5366925918fda2068a4695bc76d00623 (patch)
treeab459e7350265336fac9ac24ae2f8966ca221ff5
parent5942ec3f802262292688bf9ec172e9e00dd5ce06 (diff)
jpilot.c: fixed Japanese code conversion.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@22 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja4
-rw-r--r--src/jpilot.c14
3 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 13e0402b..586af984 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-20
+
+ * src/jpilot.c: fixed Japanese code conversion.
+
2005-01-19
* src/compose.c: compose_insert_sig(): fixed broken signature
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 896d77b3..f09392d4 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,7 @@
+2005-01-20
+
+ * src/jpilot.c: 日本語文字コードの変換を修正。
+
2005-01-19
* src/compose.c: compose_insert_sig(): 署名の置換が壊れていたのを
diff --git a/src/jpilot.c b/src/jpilot.c
index 99f41c0d..4bc6aa6d 100644
--- a/src/jpilot.c
+++ b/src/jpilot.c
@@ -1049,7 +1049,7 @@ static void jpilot_load_address( JPilotFile *pilotFile, buf_rec *buf, ItemFolder
if( convert_charcode ) {
gchar *nameConv;
nameConv = g_strdup( fullName );
- conv_sjistoeuc( fullName, FULLNAME_BUFSIZE, nameConv );
+ conv_sjistodisp( fullName, FULLNAME_BUFSIZE, nameConv );
g_free( nameConv );
}
@@ -1115,7 +1115,7 @@ static void jpilot_load_address( JPilotFile *pilotFile, buf_rec *buf, ItemFolder
addritem_email_set_address( email, bufEMail );
if( convert_charcode ) {
- conv_sjistoeuc( convertBuff, JPILOT_LEN_LABEL, ai->labels[ind] );
+ conv_sjistodisp( convertBuff, JPILOT_LEN_LABEL, ai->labels[ind] );
addritem_email_set_remarks( email, convertBuff );
}
else {
@@ -1283,7 +1283,7 @@ static gboolean jpilot_setup_labels( JPilotFile *pilotFile ) {
gchar convertBuff[ JPILOT_LEN_LABEL ];
if( convert_charcode ) {
- conv_sjistoeuc( convertBuff, JPILOT_LEN_LABEL, labelName );
+ conv_sjistodisp( convertBuff, JPILOT_LEN_LABEL, labelName );
labelName = convertBuff;
}
@@ -1316,7 +1316,7 @@ GList *jpilot_load_label( JPilotFile *pilotFile, GList *labelList ) {
if( labelName ) {
if( convert_charcode ) {
- conv_sjistoeuc( convertBuff, JPILOT_LEN_LABEL, labelName );
+ conv_sjistodisp( convertBuff, JPILOT_LEN_LABEL, labelName );
labelName = convertBuff;
}
labelList = g_list_append( labelList, g_strdup( labelName ) );
@@ -1394,7 +1394,7 @@ GList *jpilot_load_custom_label( JPilotFile *pilotFile, GList *labelList ) {
g_strchug( labelName );
if( *labelName != '\0' ) {
if( convert_charcode ) {
- conv_sjistoeuc( convertBuff, JPILOT_LEN_LABEL, labelName );
+ conv_sjistodisp( convertBuff, JPILOT_LEN_LABEL, labelName );
labelName = convertBuff;
}
labelList = g_list_append( labelList, g_strdup( labelName ) );
@@ -1443,7 +1443,7 @@ static void jpilot_build_category_list( JPilotFile *pilotFile ) {
if( convert_charcode ) {
gchar catName[ JPILOT_LEN_CATEG ];
- conv_sjistoeuc( catName, JPILOT_LEN_CATEG, cat->name[i] );
+ conv_sjistodisp( catName, JPILOT_LEN_CATEG, cat->name[i] );
addritem_folder_set_name( folder, catName );
}
else {
@@ -1620,7 +1620,7 @@ gboolean jpilot_validate( const JPilotFile *pilotFile ) {
* no home. Filename should be g_free() when done.
*/
gchar *jpilot_find_pilotdb( void ) {
- gchar *homedir;
+ const gchar *homedir;
gchar str[ WORK_BUFLEN ];
gint len;
FILE *fp;