You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/30 09:06:16 UTC

[jira] [Commented] (FLEX-19211) StringUtil.trim() function does not remove the space in japanese language

    [ https://issues.apache.org/jira/browse/FLEX-19211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645335#comment-13645335 ] 

Justin Mclean commented on FLEX-19211:
--------------------------------------

Code uses this:
if(input.charCodeAt(i - 1) > 32)

so wrong!
                
> StringUtil.trim() function does not remove the space in japanese language
> -------------------------------------------------------------------------
>
>                 Key: FLEX-19211
>                 URL: https://issues.apache.org/jira/browse/FLEX-19211
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Runtime Localization
>    Affects Versions: Adobe Flex SDK 3.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): 
> Browser: Internet Explorer 6.x
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> Reproduced in Windows Vista OS
> 1.create textinput where only spaces are entered error message is shown
> 2.checking this condition using stringutil.trim() function, based on value error mesage is shown
> 3.Now change the keyboard language  to japanese and select the input type to Hiragana,browser language to japanese.
> 4.same code above stingutil.trim() function is called.
> 5.But trim() function instead of trimming, it returned the same characters i.e. spaces 
> 6.Validation is failed.
>  
>  Actual Results:
> StringUtil.trim() is not trimming leading and trailing spaces returning the same string i.e space
>  
>  Expected Results:
>   StringUtil.trim() function should trim the leading and trailing spaces.
>  
>  Workaround (if any):

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira