<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Recent changes to 380: "apply replaygain" option uses locales when it should not</title><link>http://sourceforge.net/p/flac/bugs/380/</link><description>Recent changes to 380: "apply replaygain" option uses locales when it should not</description><language>en</language><lastBuildDate>Tue, 30 Apr 2013 11:26:21 -0000</lastBuildDate><item><title>#380 "apply replaygain" option uses locales when it should not</title><link>http://sourceforge.net/p/flac/bugs/380/?limit=25#8dce</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Now in git as commit aa285f3ac18a9825e9081af87545c8406e10f2d1&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ulrich Klauer</dc:creator><pubDate>Tue, 30 Apr 2013 11:26:21 -0000</pubDate><guid>http://sourceforge.net92e15cd9dfe1c647cce16d9d10fae3e772a833e3</guid></item><item><title>"apply replaygain" option uses locales when it should not</title><link>http://sourceforge.net/p/flac/bugs/380/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This bug was originally reported in the Debian BTS:&lt;br /&gt;
&lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498050" rel="nofollow"&gt;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498050&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Original report follows, it applies to flac 1.2.1 and a patch is attached:&lt;br /&gt;
--------&lt;br /&gt;
flac has an undocumented option --apply-replaygain-which-is-not-lossless&lt;br /&gt;
for normalising the files' volume when decoding files.&lt;/p&gt;
&lt;p&gt;The replaygain tags inside a file are in the format:&lt;br /&gt;
REPLAYGAIN_TRACK_GAIN=-2.29 dB&lt;br /&gt;
REPLAYGAIN_TRACK_PEAK=0.96014404&lt;/p&gt;
&lt;p&gt;$ LC_NUMERIC=sv_SE.utf8 flac -d --apply-replaygain-which-is-not-lossless *.flac&lt;/p&gt;
&lt;p&gt;01 d-moll.flac: INFO: applying album ReplayGain (gain=-2,00dB+preamp=0,0dB, low noise shaping, hard limiting) to output&lt;br /&gt;
01 d-moll.flac: WARNING: applying ReplayGain is not lossless&lt;br /&gt;
01 d-moll.flac: done&lt;/p&gt;
&lt;p&gt;$ LC_NUMERIC=C flac -d --apply-replaygain-which-is-not-lossless *.flac&lt;/p&gt;
&lt;p&gt;01 d-moll.flac: INFO: applying album ReplayGain (gain=-2.29dB+preamp=0.0dB, low noise shaping, hard limiting) to output&lt;br /&gt;
01 d-moll.flac: WARNING: applying ReplayGain is not lossless&lt;br /&gt;
01 d-moll.flac: done&lt;/p&gt;
&lt;p&gt;Note that the gains differ. sv_SE uses a decimal comma while the data in&lt;br /&gt;
the tags use a decimal point. In that locale, the decoder considers the&lt;br /&gt;
decimal point an incorrect character and truncates the tag to "-2 dB".&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">quadrispro</dc:creator><pubDate>Sat, 16 Apr 2011 10:03:05 -0000</pubDate><guid>http://sourceforge.netb6de3c66181655e4e637ae10b1229761e00c66b3</guid></item></channel></rss>