Ticket #35576

漢数字への変換がおかしい

Open Date: 2015-09-30 00:27 Last Update: 2015-11-06 16:08

Reporter:
Owner:
Type:
Status:
Open [Owner assigned]
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None

Details

数字をいわゆる全角で入力して漢数字へ変換すると、 「100」 → 「一百〇十〇」 のようになってしまう。

とりあえず以下のパッチで様子を見ています。

  1. *** Wnn/jserver/atojis.c.ORIG Sat Sep 19 23:51:34 2015
  2. --- Wnn/jserver/atojis.c Tue Sep 29 23:45:33 2015
  3. ***************
  4. *** 474,484 ****
  5. revkouho[col++] = bun[k];
  6. break;
  7. }
  8. ! if (bun[k] != '0')
  9. {
  10. if (keta != 0)
  11. getketa (keta, revkouho, &col);
  12. ! if (bun[k] != '1' ||
  13. #ifdef CHINESE
  14. keta % 4 != 1)
  15. #else /* JAPANESE */
  16. --- 474,484 ----
  17. revkouho[col++] = bun[k];
  18. break;
  19. }
  20. ! if (bun[k] != '0' && bun[k] != S_NUM)
  21. {
  22. if (keta != 0)
  23. getketa (keta, revkouho, &col);
  24. ! if (bun[k] != '1' && bun[k] != S_NUM + 1 ||
  25. #ifdef CHINESE
  26. keta % 4 != 1)
  27. #else /* JAPANESE */

Attachment File List

No attachments

Ticket History (2/2 Histories)

2015-09-30 00:27 Updated by: nahainec
  • New Ticket "漢数字への変換がおかしい" created
2015-11-06 16:08 Updated by: aonoto
  • Owner Update from (None) to aonoto

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login