• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

nkfのGitリポジトリのfork


Commit MetaInfo

修訂9768248e615c4a0f86fa629ce811a0872bfd35d7 (tree)
時間2010-04-28 23:02:52
作者NARUSE, Yui <naruse@user...>
CommiterNARUSE, Yui

Log Message

Fix JISX0201 of eucJP-ms, eucJP-ascii and CP50220.

* eucJP-ms and eucJP-ascii should preserve Halfwidth Katakana.

[nkf-forum:50320]

* CP50220 should convert Halfwidth Katakana.

Change Summary

差異

--- a/nkf.c
+++ b/nkf.c
@@ -21,7 +21,7 @@
2121 * 3. This notice may not be removed or altered from any source distribution.
2222 */
2323 #define NKF_VERSION "2.1.1"
24-#define NKF_RELEASE_DATE "2010-04-14"
24+#define NKF_RELEASE_DATE "2010-04-28"
2525 #define COPY_RIGHT \
2626 "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
2727 "Copyright (C) 1996-2010, The nkf Project."
@@ -1209,10 +1209,10 @@ set_input_encoding(nkf_encoding *enc)
12091209 case ISO_8859_1:
12101210 iso8859_f = TRUE;
12111211 break;
1212- case CP50220:
12131212 case CP50221:
12141213 case CP50222:
12151214 if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
1215+ case CP50220:
12161216 #ifdef SHIFTJIS_CP932
12171217 cp51932_f = TRUE;
12181218 #endif
@@ -1265,6 +1265,7 @@ set_input_encoding(nkf_encoding *enc)
12651265 #endif
12661266 break;
12671267 case EUCJP_MS:
1268+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
12681269 #ifdef SHIFTJIS_CP932
12691270 cp51932_f = FALSE;
12701271 #endif
@@ -1273,6 +1274,7 @@ set_input_encoding(nkf_encoding *enc)
12731274 #endif
12741275 break;
12751276 case EUCJP_ASCII:
1277+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
12761278 #ifdef SHIFTJIS_CP932
12771279 cp51932_f = FALSE;
12781280 #endif
@@ -1327,7 +1329,6 @@ set_output_encoding(nkf_encoding *enc)
13271329 {
13281330 switch (nkf_enc_to_index(enc)) {
13291331 case CP50220:
1330- if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
13311332 #ifdef SHIFTJIS_CP932
13321333 if (cp932inv_f == TRUE) cp932inv_f = FALSE;
13331334 #endif
@@ -1403,12 +1404,14 @@ set_output_encoding(nkf_encoding *enc)
14031404 #endif
14041405 break;
14051406 case EUCJP_MS:
1407+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
14061408 x0212_f = TRUE;
14071409 #ifdef UTF8_OUTPUT_ENABLE
14081410 ms_ucs_map_f = UCS_MAP_MS;
14091411 #endif
14101412 break;
14111413 case EUCJP_ASCII:
1414+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
14121415 x0212_f = TRUE;
14131416 #ifdef UTF8_OUTPUT_ENABLE
14141417 ms_ucs_map_f = UCS_MAP_ASCII;