How to reproduce:
1. Change Windows language to France (I used French (France))
2. Create a new Unity project
3. In the project go to Project Settings → Resolution and Presentation
4. Change Aspect Ratio Mode from “Native Aspect Ratio“ to “Custom“ or other
5. In the Build Settings press Build
Expected result: Project builds successfully
Actual result: Build fails with an error “System.FormatException: Input string was not in a correct format.“
Reproducible with: 2022.2.0a16, 2022.3.23f1, 2023.1.0b12
Not reproducible with: 2021.3.37f1, 2022.2.0a15, 2023.2.17f1, 6000.0.0b14
Fixed in: 2023.1.0b13
Reproducible on: Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
- Reproducible with “Legacy Wide Screen (1.86) and “Custom” Aspect Ratio Mode
- Not reproducible when building Windows Standalone build (no such Aspect Ratio Mode option)
Full error: