Bug 414370 - Having LC_ALL=pt_BR.UTF-8 set in Windows breaks projects w/ pt_BR locale.
Summary: Having LC_ALL=pt_BR.UTF-8 set in Windows breaks projects w/ pt_BR locale.
Alias: None
Product: kdenlive
Classification: Unclassified
Component: Video Display & Export (show other bugs)
Version: 19.08.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal (vote)
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
Depends on:
Reported: 2019-11-21 16:18 UTC by pedrobkb16
Modified: 2020-07-14 17:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 20.08.0
fritzibaby: Brainstorm+

the full before and after project diff (77.93 KB, patch)
2019-11-21 16:18 UTC, pedrobkb16

Note You need to log in before you can comment on or make changes to this bug.
Description pedrobkb16 2019-11-21 16:18:00 UTC
Created attachment 124048 [details]
the full before and after project diff

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

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

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

Windows: 10.0.18362.476

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 pedrobkb16 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