Bug 414370

Summary: Having LC_ALL=pt_BR.UTF-8 set in Windows breaks projects w/ pt_BR locale.
Product: [Applications] kdenlive Reporter: microlan101
Component: Video Display & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby
Priority: NOR Flags: fritzibaby: Brainstorm+
Version: 19.08.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 20.08.0
Attachments: the full before and after project diff

Description microlan101 2019-11-21 16:18:00 UTC
Created attachment 124048 [details]
the full before and after project diff

STEPS TO REPRODUCE
1. Set the Windows UI to pt_BR.
2. Make sure LC_ALL is not set, open a project saved with decimal commas, this will work
3. Set 'LC_ALL=pt_BR.UTF-8'
4. Reopen the project

OBSERVED RESULT
clips in timeline will be misaligned, some saved effects will stop working

EXPECTED RESULT
Same as if LC_ALL was not set. It is the same locale after all

SOFTWARE/OS VERSIONS
Windows: 10.0.18362.476

ADDITIONAL INFORMATION
I have LC_ALL=pt_BR.UTF-8 so git properly shows characters with accents in git logs, but when I have it set and try to open a project that was saved with my locale it gets all messed up.

Likewise, if I unset LC_ALL and open the projects I manually converted to decimal point (at first I thought it happened because I updated to 19.08.3), the same problem happens. However if I set LC_NUMERIC=C in the environment, or change kdenlive:docproperties.decimalPoint to '.', they work again.

I diff-ed my project before and after the breaking change:

-<mlt title="Anonymous Submission" LC_NUMERIC="pt_BR" producer="main_bin" version="6.16.0">
+<mlt title="Anonymous Submission" LC_NUMERIC="pt_BR.UTF-8" producer="main_bin" version="6.17.0">
  <profile frame_rate_num="30" sample_aspect_num="1" display_aspect_den="9" colorspace="709" progressive="1" description="HD 720p 30 fps" display_aspect_num="16" frame_rate_den="1" width="1280" height="720" sample_aspect_den="1"/>
- <producer title="Anonymous Submission" id="producer0" in="00:00:00,000" out="00:02:40,600">
+ <producer title="Anonymous Submission" id="producer0" in="00:00:00.000" out="00:02:40.000">

So it picked up LC_ALL from the environment, but it also changed all 'in' and 'out' timestamps to decimal points and lost the milliseconds, which explains the misaligned clips. :/
Comment 1 emohr 2019-11-24 18:15:03 UTC
The comma/point issue is still not solved. See here: https://invent.kde.org/kde/kdenlive/issues/78. Dev found no solution so far for Windows. Thank you for the test with the environemt path.
Comment 2 microlan101 2019-12-01 16:38:35 UTC
just found out that setting LC_CTYPE has the same effect on git log but does not cause this bug.

for those interested