cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Barbosa Pinto (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-6269) Can't build a IOS project from CLI, if its name has special chars (accents)
Date Fri, 14 Mar 2014 22:06:43 GMT
Marcel Barbosa Pinto created CB-6269:
----------------------------------------

             Summary: Can't build a IOS project from CLI, if its name has special chars (accents)
                 Key: CB-6269
                 URL: https://issues.apache.org/jira/browse/CB-6269
             Project: Apache Cordova
          Issue Type: Improvement
          Components: CLI, iOS
    Affects Versions: 3.4.0
         Environment: Mac OS X 10.9
            Reporter: Marcel Barbosa Pinto
            Priority: Minor


CLI commands:

cordova create test com.test "Téça App"
cd test
cordova platform add ios
cordova build ios

it generates an error in the following file:

cordova/src/metadata/ios_parser.js line 78

if(name != this.originalName){
  (...)
}

The app name with accent ("Téça App") is not normalized. All though the name is the same,
the condition above returns true;

Variable name comes from the config.name() that reads the config.xml
variable this.originalName comes from the fs.readdirSync

Maybe the encode get lost here, or we should just add a normalize function before compare
the strings.





--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message