ath0mas opened a new issue #1210:
URL: https://github.com/apache/cordova-android/issues/1210
# Bug Report
## Problem
### What is expected to happen?
Config **name** for `cordova platform add android` must be same as the value
first set during `create`, even with spaces and accents, and same as for ios
platform.
Given this value is correctly set in config.xml and other places for the
created cordova project.
### What does actually happen?
Name is not correct: spaces and accents are replaced with `_` (for example
visible in the _.idea/.name_ file since #1173).
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
```
cordova create hello com.example.hello "Hello World accentué"
cd hello/
```
but `cordova platform add android` gives wrong **name**:
```
Using cordova-fetch for cordova-android@^9.0.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.example.hello
Name: Hello_World_accentu_
..
Android project created with [email protected]
```
while `cordova platform add ios` gives correct config **name**:
```
Using cordova-fetch for cordova-ios@^6.1.0
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms\ios
Package: com.example.hello
Name: Hello World accentué
iOS project created with [email protected]
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Cordova CLI 10.0.0
Cordova Android 9.1.0
Windows 10
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]