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

Vladimir Kotikov commented on CB-6992:
--------------------------------------

After additional investigation i've found that we need apply NFD normalization 
in the other place of ios_parser: it is necessary to normalize 'name' parameter 
from config.xml, rather then the originalName (name of project file), since it 
(originalName) potentially may be already in NFD form.

Also it is necessary to add additional normalization of 'name' parameter in 
platform.js script since it will be written then to .pbxproj and this may 
potentially break the ios build.

FYI: Git has the same problem on Mac OS: 
http://stackoverflow.com/questions/5581857/git-and-the-umlaut-problem-on-mac-os-x
Mac encoding problems on TWiki: http://twiki.org/cgi-bin/view/Codev/UnicodeMac

> iOS platform add/prepare fails if app display name contains unicode 
> characters.
> -------------------------------------------------------------------------------
>
>                 Key: CB-6992
>                 URL: https://issues.apache.org/jira/browse/CB-6992
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.5.0
>         Environment: uname: Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu 
> Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
> cordova-dev -v: 3.5.0-0.2.4
> cordova-lib: 0.21.3
> Node 0.10.26
> iOS
>            Reporter: Vladimir Kotikov
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: cli, configParser, ios
>
> Repro steps:
> # cordova create test-umlaÜt com.test.umlaÜt umlaÜt
> # cd test-umlaÜt/
> # cordova platform add ios
> Platform add fails with following error:
> {noformat}
> mv: dest file already exists: 
> /Users/user/test/test-umlaÜt/platforms/ios/umlaÜt/umlaÜt-Info.plist
> mv: dest file already exists: 
> /Users/user/test/test-umlaÜt/platforms/ios/umlaÜt/umlaÜt-Prefix.pch
> shell.js: internal error
> Error: EINVAL, invalid argument 
> '/Users/user/test/test-umlaÜt/platforms/ios/umlaÜt.xcodeproj'
>     at Object.fs.renameSync (fs.js:543:18)
>     at 
> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:495:8
>     at Array.forEach (native)
>     at Object._mv 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:471:11)
>     at Object.mv 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:1491:23)
>     at pbxProject.<anonymous> 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:145:27)
>     at pbxProject.EventEmitter.emit (events.js:98:17)
>     at pbxProject.<anonymous> 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/xcode/lib/pbxProject.js:30:18)
>     at ChildProcess.EventEmitter.emit (events.js:98:17)
>     at handleMessage (child_process.js:318:10)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to