Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114022 - media-libs/flac-1.1.2-r3+: flac, metaflac cannot encode Swedish characters in Vorbis comment
Summary: media-libs/flac-1.1.2-r3+: flac, metaflac cannot encode Swedish characters in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 06:53 UTC by Andreas Johansson
Modified: 2007-09-16 07:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
flac-1.1.2-r3.ebuild without largefile patch (flac-1.1.2-r3.ebuild,2.05 KB, text/plain)
2006-04-25 06:29 UTC, Simon Ruggier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Johansson 2005-11-30 06:53:14 UTC
The new stable version of FLAC, flac-1.1.2-r3 cannot encode Swedish characters,
Comment 1 Andreas Johansson 2005-11-30 06:53:14 UTC
The new stable version of FLAC, flac-1.1.2-r3 cannot encode Swedish characters,
ÅÄÖåäö, in Vorbis comment tags using flac or metaflac programs. The character
gets replaced by "#", and if UTF-8 is used, it is replaced by "##".

Reproducible: Always
Steps to Reproduce:
1. > flac -5 --tag=ARTIST=ÅÄÖ test.wav
or
1. > metaflac --set-tag=ARTIST=ÅÄÖ test.flac
Actual Results:  
> metaflac --list --block-type=VORBIS_COMMENT test.flac
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 54
  vendor string: reference libFLAC 1.1.2 20050205
  comments: 1
    comment[0]: ARTIST=###


Expected Results:  
> metaflac --list --block-type=VORBIS_COMMENT test.flac
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 54
  vendor string: reference libFLAC 1.1.2 20050205
  comments: 1
    comment[0]: ARTIST=ÅÄÖ


Tested on two systems:

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.5-r2, 2.6.13-suspend2-r4 i686) 
=================================================================
System uname: 2.6.13-suspend2-r4 i686 Intel(R) Pentium(R) M processor 1600MHz
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11  
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -msse2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/ qmail/control"                        
                                                                      
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium3 -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo
http://ds.thn.htu.se/linux/      gentoo http://mirror.pudas.net/gentoo
ftp://mirror.pudas.net/gentoo"                                         
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa apache2 avi bitmap-fonts bzip2 bzlib cdparanoia cdr crypt
cscope divx4linux dvd dvdread  eds emboss encode expat fbcon flac ftp gif
gstreamer gtk2 imagemagick imap imlib ipv6 java jpeg lcms libg++   libwww mad
mime mmx mmx2 mng mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib
perl png python    quicktime readline samba sockets sqlite sse sse2 ssl tcpd
truetype truetype-fonts type1-fonts udev unicode    vcd vorbis x86 xml2 xv xvid
zlib userland_GNU kernel_linux elibc_glibc"                                    
  Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse2 -pipe -ftracer -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -msse2 -pipe -ftracer -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo
http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo
ftp://mirror.pudas.net/gentoo"
LANG="sv_SE"
LC_ALL="sv_SE"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aac acpi alsa apache2 audiofile avi bitmap-fonts bzip2
bzlib cdparanoia cdr crypt cscope curl divx4linux dts dvd dvdr dvdread eds
emboss encode exif expat fbcon flac ftp gif gstreamer gtk2 imagemagick imap
imlib ipv6 java jpeg lcms libg++ libwww mad mhash mime mmx mmx2 mng mp3 mpeg
mysql ncurses nls nocardbus nptl ogg oggvorbis opengl oss pam pdflib perl png
python quicktime readline samba sockets sqlite sse2 ssl svga tcpd tetex truetype
truetype-fonts type1-fonts udev unicode usb vcd vorbis x86 xml2 xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS


The programs work as expected if I compile the source by hand, even with all the
patches added in the ebuild. I have done some tests using flac-1.1.2-r4.ebuild,
and the problem disappears when I remove line 34 from the ebuild:

AT_M4DIR="m4" eautoreconf
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-02 04:44:11 UTC
The eautoreconf just recreates autotools support after patching the sources, 
so removing it most of the sources get invalidated. 
It might be another problem with LFS. 
Comment 3 Simon Ruggier 2006-04-25 06:29:18 UTC
Created attachment 85456 [details]
flac-1.1.2-r3.ebuild without largefile patch

I independently tracked down the cause of this problem after discovering that it didn't exist in Ubuntu.  After ripping over 60 CDs in Gentoo, I wish I'd discovered it earlier. I narrowed it down to the largefile patch in flac-1.1.2-r3.ebuild, omitting the patch fixes the issue.  I did not look into the issue any further than that.

Attached is the ebuild modified so that the largefile patch isn't applied.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-08-08 15:19:51 UTC
(In reply to comment #3)
> Created an attachment (id=85456) [edit]
> flac-1.1.2-r3.ebuild without largefile patch
> 
> I independently tracked down the cause of this problem after discovering that
> it didn't exist in Ubuntu.  After ripping over 60 CDs in Gentoo, I wish I'd
> discovered it earlier. I narrowed it down to the largefile patch in
> flac-1.1.2-r3.ebuild, omitting the patch fixes the issue.  I did not look into
> the issue any further than that.
> 
> Attached is the ebuild modified so that the largefile patch isn't applied.
> 

Can you reproduce with flac-1.1.4 (or 1.2.0) ?
Comment 5 Simon Ruggier 2007-08-09 00:20:41 UTC
I just tried with flac-1.1.2-r8 and it seems fine.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2007-09-16 07:06:34 UTC
Closing, see Comment #5. Also 1.1.4 is going stable, and is stable allready on some arches.