Menu

#1945 Problem with non-ascii characters in APPDATA directory path

2016.4
Fixed
Launcher (39)
Medium
2018-06-25
2017-02-09
Velitsu
No

Flightgear version 2016.4.4

I'm trying to launch FlightGear in Windows 10. If I launch it it with supervisor rightsm Flightgear creates its home directory at "C:\Users\Isk�\AppData\Roaming\flightgear.org" My local user name is "Iskä" note the non-ascii "ä" character in the Finnish word for daddy.

Even the erroneous directory has been created, I get the following error:

Can't write to user-data storage folder, check file permissions and FG_HOME.
User data at: C:/Users/Isk�/AppData/Roaming/flightgear.org

The correct directory would be:
C:\Users\Iskä>echo %APPDATA%
C:\Users\Iskä\AppData\Roaming

When launching Flightgear with a custom bat file, the app starts, but seems that I can't download any scenery etc (or I don't know how to). At least I still see bad home directory names.

fgfs.bat:
"
@echo off
set FG_HOME=C:\apps\flightgear\home
start "" "C:\Program Files\FlightGear 2016.4.4\bin\fgfs.exe" "--enable-terrasync"
"

output in windows command prompt:
C:\apps\flightgear>fgfs.bat

C:\apps\flightgear>Qt launcher set fg_root = Path "C:/Program Files/FlightGear 2016.4.4/data"
Reading global preferences
Finished Reading global preferences
Reading user settings from Path "C:/apps/flightgear/home/autosave_2016_4.xml"
init package root at:Path "C:/Users/Iskä/Documents/FlightGear/Aircraft"
No user specified aircraft, using default
Loading aircraft -set file from:Path "C:/Program Files/FlightGear 2016.4.4/data/Aircraft/c172p/c172p-set.xml"
Reading localized strings for 'en' from Path "C:/Program Files/FlightGear 2016.4.4/data/Translations/en/sys.xml"
Reading localized strings for 'en' from Path "C:/Program Files/FlightGear 2016.4.4/data/Translations/en/atc.xml"
System locale not found or no internationalization settings specified in preferences.xml. Using default (en).
option:enable-terrasync =
Using default download dir: Path "C:/Users/Iskä/Documents/FlightGear"
read-allowed path not found:Path "C:/Users/Iskä/Documents/FlightGear/AI"
read-allowed path not found:Path "C:/Users/Iskä/Documents/FlightGear/Liveries"
Using TerraSync dir: Path "C:/Users/Iskä/Documents/FlightGear/TerraSync"
initializing cloud layers
Configuration State
======= ==============
aircraft-dir = "C:/Program Files/FlightGear 2016.4.4/data/Aircraft/c172p"
fghome-dir = "Path "C:/apps/flightgear/home""
download-dir = "C:/Users/Iskä/Documents/FlightGear"
terrasync-dir = "C:/Users/Iskä/Documents/FlightGear/TerraSync"
aircraft-search-paths =

scenery-search-paths =
C:/Users/Iskä/Documents/FlightGear/TerraSync
C:/Users/Iskä/Documents/FlightGear/TerraSync/Terrain
C:/Users/Iskä/Documents/FlightGear/TerraSync/Objects

    C:/Program Files/FlightGear 2016.4.4/data/Scenery
    C:/Program Files/FlightGear 2016.4.4/data/Scenery/Terrain
    C:/Program Files/FlightGear 2016.4.4/data/Scenery/Objects

Splash screen progress init
ATI Technologies Inc.
AMD Radeon R9 200 Series
4.5.13464 Compatibility Profile Context 21.19.411.0
4.50
Splash screen progress loading-aircraft-list
Starting automatic scenery download/synchronization. Using built-in HTTP support.Directory: 'C:/Users/Iskä/Documents/FlightGear/TerraSync'.
Splash screen progress loading-nav-dat
NavCache at:Path "C:/apps/flightgear/home/navdata_2016_4.cache"
NavCache: no main cache rebuild required
Splash screen progress init-scenery
General Initialization
======= ==============
FG_ROOT = "Path "C:/Program Files/FlightGear 2016.4.4/data""

Attempting to set starting position for LSZH:16
Reading timezone info from: Path "C:/Program Files/FlightGear 2016.4.4/data/Timezone/zone.tab"
Splash screen progress creating-subsystems
Creating Subsystems
========== ==========
Reading materials from C:/Program Files/FlightGear 2016.4.4/data/Materials/regions/materials.xml
picking entry # 1, server is http://fgfs.goneabitbursar.com/terrascenery
sync of http://fgfs.goneabitbursar.com/terrascenery/Models started, queue size is 26
after update of:Path "C:/Users/Iskä/Documents/FlightGear/TerraSync/Models" child update took:16
after update of:Path "C:/Users/Iskä/Documents/FlightGear/TerraSync/Models/Agriculture" child update took:31
after update of:Path "C:/Users/Iskä/Documents/FlightGear/TerraSync/Models/Commercial" child update took:140
Reading systems from Path "C:/Program Files/FlightGear 2016.4.4/data/Aircraft/c172p/Systems/systems.xml"
Initializing HUD Instrument
Reading sound sound from Path "C:/Program Files/FlightGear 2016.4.4/data/Aircraft/c172p/c172-sound.xml"
Creating subsystems took:1766
Splash screen progress binding-subsystems
KMA20 audio panel initialized
Hobbs system stopped
Hobbs system stopped
Starter off
KI266 dme indicator #0 initialized
Primer reset to 0
Electrical system initialized

Discussion

  • James Turner

    James Turner - 2017-04-07

    I attempted to fix most of the issues with non-ASCII paths for 2017.1, can you test that version and report any remaining problems?

     
  • James Turner

    James Turner - 2018-06-25
    • status: New --> Fixed
    • assigned_to: James Turner
     
  • James Turner

    James Turner - 2018-06-25

    All these path issues should be fixed now, marking done pending further feedback

     

Log in to post a comment.

Auth0 Logo