Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Log strings truncated to one character #1369

Open
lordfolken opened this issue Mar 5, 2024 · 0 comments
Open

Windows: Log strings truncated to one character #1369

lordfolken opened this issue Mar 5, 2024 · 0 comments
Labels

Comments

@lordfolken
Copy link
Contributor

lordfolken commented Mar 5, 2024

XCSoar versions having and not having the problem

broken 7.42 (WIN64)

System information

Wine 7.13

Steps to reproduce the behavior

Start application and look at log

Expected behavior

complete log messages, including paths and complete strings.

For example:
Starting XCSoar X <- should show the complete string
Loaded profile from C <- should show the path to the file

Actual behavior

[2024-03-05T21:10:54Z] Display dpi=96,96
[2024-03-05T21:10:56Z] Startup dialog
[2024-03-05T21:10:56Z] Loading profiles
[2024-03-05T21:10:56Z] Loaded profile from C
[2024-03-05T21:10:56Z] Units: GetUserDefaultUILanguage() = 0x409
[2024-03-05T21:10:56Z] Loading language file
[2024-03-05T21:10:56Z] Language: GetUserDefaultUILanguage()=0x409
[2024-03-05T21:10:56Z] Loading input events file
[2024-03-05T21:10:56Z] LoadTerrain
[2024-03-05T21:10:56Z] Loading Topography File...
[2024-03-05T21:10:56Z] ReadWaypoints
[2024-03-05T21:10:56Z] Failed to read waypoint file: C
[2024-03-05T21:10:56Z] Failed to open C:\users\folken\Documents\XCSoarData\user.cup: File not found.
: File not found
[2024-03-05T21:10:56Z] Failed to open 'airfields.txt' from ZIP file
[2024-03-05T21:10:56Z] Start at home waypoint
[2024-03-05T21:10:56Z] RASP load
[2024-03-05T21:10:56Z] No rasp data file: Failed to open ZIP archive C:\users\folken\Documents\XCSoarData\xcsoar-rasp.dat
[2024-03-05T21:10:56Z] ReadAirspace
[2024-03-05T21:10:56Z] Register serial devices
[2024-03-05T21:10:56Z] ProgramStarted
[2024-03-05T21:10:56Z] cannot open C:\users\folken\Documents\XCSoarData\lua\init.lua: No such file or directory
[2024-03-05T21:10:56Z] Start at home waypoint

The argument passed to LogFormat gets truncated.

Do you have any idea what may have caused this?

Wide chars are being passed to %s in logformat.
This either has to be %ls or the string explicitly converted.

Do you have an idea how to solve the issue?

@lordfolken lordfolken added the bug label Mar 5, 2024
ubx added a commit to ubx/XCSoar that referenced this issue Mar 8, 2024
Consider this a more adventurous or experimental solution to the problem.
Fixes issue XCSoar#1369 ?
ubx added a commit to ubx/XCSoar that referenced this issue Mar 8, 2024
Consider this a more adventurous or experimental solution to the problem.
Fixes issue XCSoar#1369 ?
ubx added a commit to ubx/XCSoar that referenced this issue Mar 15, 2024
Consider this a more adventurous or experimental solution to the problem.
Fixes issue XCSoar#1369 ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant