ralphy wrote: 
> I've applied your patch to the source tree (vs2008) I used to build the
> flac.exe that's currently provided with LMS and rebuilt it.
> 
> It's 'available here'
> (https://sourceforge.net/projects/lmsclients/files/utility/flac/flac-nolocale-win32.zip/download).
> 
> 
> 
> I should be able to quickly build a flac.exe with any patches you'd like
> to try using my vs2008 environment.

Thank you, Ralphy. Very helpful.

Although I do not have a Windows box, I do have a macOS box with wine
installed. I've never really tried to use wine, and I have some doubts,
but I was able to confirm the issue.

Turns out one can set the environment that windows under wine sees by
prefixing the command with, say, 'LC_ALL=fr_FR.UTF-8'. This has been
flagged up by reinholdk. And this was an effective test of the various
flac.exe's that I have gathered.

An earlier version of flac.exe distributed with LMS, version 1.2.0,
seems to work fine in any locale. But actually, the flac files produced
under the 'wrong' locale are slightly different, because flac is
truncating the skip specification to integer values.

The flac team fixed that, and version 1.3.2 (which is currently
distributed with LMS) does not truncate the skip specification at the
'strange' decimal separator, but rather refuses to accept it at all.
'ERROR: invalid value for --skip'. So in fixing it, the flac team has
messed us up. This much we have already worked out.

The patched version of flac.exe 1.3.2 that you have kindly provided does
work as we would like. So that first patch of mine does seem to be
effective on my wine/windows set up. Not the same as running it on a
real Windows box, but encouraging.


Here's an experiment that someone with a windows box might try. Is it
effective to set LC_ALL in a custom configuration file ? Or perhaps just
LC_NUMERIC ?
I was thinking along these lines:

Should always work, if perl/LMS passes that LC_ALL over correctly.

Code:
--------------------
    
  wav flc * *
        # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
        LC_ALL=C [flac] -cs --totally-silent --compression-level-0 $START$ 
$END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  
--------------------


Should fail. French boxes don't like "." decimal separators:

Code:
--------------------
    
  wav flc * *
        # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
        LC_ALL=fr_FR [flac] -cs --totally-silent --compression-level-0 $START$ 
$END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  
--------------------


If this is effective on Windows, and also on the various Unices, then
maybe that could become the LMS fix.


------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=110871

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to