View Issue Details

IDProjectCategoryView StatusLast Update
0000772ardourbugspublic2008-11-20 23:43
Reportermanu Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000772: Gain automation loads incorrectly for some locale terminal settings
DescriptionWhen using a locale which uses the comma (,) as decimal separator (fr_FR@euro for example), then the gain automation graph is flat when reloading a session from the hard drive.
 
Additional InformationAfter changing the Locale setting to another one (en_US) the session loads correctly.

after looking into the source code, it seems due to the behaviour of scanf function
in libs/ardour/io.cc method IO::load_automation (const string& path) :
sscanf (line, "%c %lu %lf", &type, &when, &value)

in this this case nothing is read after the point delimiter
for the value parameter (ie the value 0.315273 is read 0)

As a newbee in C++, i don't have any alternative call yet.

Emmanuel Verhee
TagsNo tags attached.

Activities

paul

2004-11-16 00:41

administrator   ~0001600

this is a known bug, and i thank you for tracking it down. but you should also notice that surrounding that call is a setenv of LOCALE. we don't understand why it doesn't have any effect when it its called here rather than in the parent shell.

manu

2004-11-18 19:07

reporter   ~0001620

thanks for the reply, i will search a bit further in case i find any clue

piotr

2005-01-27 23:30

reporter   ~0001941

I have checked it on my system with locale pl_PL and when I switch to en_US and create a session on ardour with some gain automation, save and reopen everything is fine, but when I switch to pl_PL it is not ok again.

paul

2005-02-03 13:42

administrator   ~0001958

what version of ardour? this was fixed within the last month, as far we know.

piotr

2005-02-03 14:37

reporter   ~0001959

I use ardour-0.9beta22 from thac rpm's, it was updated on 2005-01-23.

paul

2005-02-03 14:48

administrator   ~0001960

its fixed in beta23, released january 6th 2005.

paul

2005-02-06 16:34

administrator   ~0001965

see bugnotes for history.

Issue History

Date Modified Username Field Change
2004-11-15 22:56 manu New Issue
2004-11-16 00:41 paul Note Added: 0001600
2004-11-18 19:07 manu Note Added: 0001620
2005-01-27 23:30 piotr Note Added: 0001941
2005-02-03 13:42 paul Note Added: 0001958
2005-02-03 14:37 piotr Note Added: 0001959
2005-02-03 14:48 paul Note Added: 0001960
2005-02-06 16:34 paul Status new => resolved
2005-02-06 16:34 paul Resolution open => fixed
2005-02-06 16:34 paul Assigned To => paul
2005-02-06 16:34 paul Note Added: 0001965
2008-11-20 23:43 seablade Status resolved => closed