View Issue Details

IDProjectCategoryView StatusLast Update
0005850mantisbtlocalizationpublic2009-06-23 15:28
Reporterave Assigned Tosiebrand  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0a3 
Fixed in Version1.2.0rc1 
Summary0005850: [CJK] Section titles are garbled under Japanese.
Description

strtoupper() function returns invalid result if parameter is Japanse string.
Files below are using strtoupper() on localized strings.

adm_permissions_report.php
manage_config_email_page.php
manage_config_workflow_page.php
manage_config_work_threshold_page.php

Additional Information

Workaround I've found:
(1) Not to use strtoupper() on localized string.
(2) Use mb_strtoupper() instead of strtoupper().

I think (1) is better because (2) requires '--enable-mbstring' configure option.

TagsNo tags attached.

Relationships

related to 0004084 closedsiebrand [all lang] Use UTF-8 codepage 
has duplicate 0005849 closedvboctor Section titles are garbled under Japanese. 

Activities

seiji

seiji

2006-09-25 09:48

reporter   ~0013507

The translation of Japanese includes three files (stringjapanese{euc,sjis,utf8}.txt). but, only when string_japanese_sjis.txt is used, strtopos() returns invalid result.

It overlaps with ASCII code because "SJIS" uses 0x40-0x7E ('a-z', 'A-Z' etc) for the second byte.When strtoupper() converts the second byte, it becomes a character not intended as Japanese.

I think that it is the best to use "string_japanese_utf.txt", not using SJIS because there is a problem like 0007439.
However, it may be difficult because "SJIS" is default of the Windows
environment.

if possible, I hope

(1) Not to use strtoupper() on localized string.

siebrand

siebrand

2008-09-10 18:16

developer   ~0019377

Mantis uses UFT-8 in 1.2.x. Can you please retest with Mantis 1.2.0a2 or later? We expect this issue to be RESOLVED.

siebrand

siebrand

2009-04-27 18:18

developer   ~0021707

This has been resolved in master 1.2.x. strtoupper and strtolower have been removed whereever it could have an impact. Usage still remains in for example phpmailer. The solution there is to use mb_string in php.

ave

ave

2009-04-27 23:12

reporter   ~0021709

Thanks for fixing.
And sorry that I didn't respond, the notification email seemed to be filtered as a spam.