Bug 496805

Summary: LabPlot cannot open CSV file under Windows
Product: [Applications] LabPlot2 Reporter: uwestoehr <uwestoehr>
Component: generalAssignee: Stefan Gerlach <stefan.gerlach>
Status: RESOLVED FIXED    
Severity: normal CC: stefan.gerlach
Priority: NOR    
Version First Reported In: 2.11.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description uwestoehr 2024-11-29 00:14:11 UTC
Created attachment 176200 [details]
screenshot

- take the attached CSV file.
- in Windows' explorer, right-click on the CSV and select then to open the CSV with labPlot

result: the CSV cannot be import. I get the attached dialog and there I see that the file path was somehow destroyed.

The CSV file I want to open is under
D:\usti\Julia
and LabPlot mangled the backslashes.
Comment 1 Stefan Gerlach 2024-12-14 21:59:00 UTC
Git commit b8b4b1e821d2fed6a8c2d5cc8a8c629865e733df by Stefan Gerlach.
Committed on 14/12/2024 at 21:39.
Pushed by sgerlach into branch 'master'.

fix converting Windows path from command line

M  +12   -4    src/frontend/datasources/ImportFileWidget.cpp

https://invent.kde.org/education/labplot/-/commit/b8b4b1e821d2fed6a8c2d5cc8a8c629865e733df
Comment 2 uwestoehr 2024-12-16 02:39:14 UTC
Man thanks, confirmed fixed