Opened 13 years ago

Closed 13 years ago

#33660 closed defect (fixed)

libxml2: sed: RE error: illegal byte sequence

Reported by: Veence (Vincent) Owned by: 0xced (Cédric Luthi)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: libxml2

Description

Strangely, while trying to compile libxml2-2.7.8.tar.gz, I get the error mentioned in the subject.

DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libxml2/libxml2/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/libxml2/libxml2-2.7.8.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
DEBUG: Executing proc-post-org.macports.extract-extract-0
DEBUG: sed: RE error: illegal byte sequence
    while executing
"exec /usr/bin/sed s|/etc|/opt/local/etc|g < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_te..."
    ("eval" body line 1)
    invoked from within
"eval exec $cmdline"
Error: reinplace: sed: RE error: illegal byte sequence
Error: Target org.macports.extract returned: reinplace sed(1) failed
DEBUG: Backtrace: reinplace sed(1) failed
    while executing
"$post $targetname"

Change History (4)

comment:1 Changed 13 years ago by Veence (Vincent)

The problem is caused by the line 2731 in the file runtest.c:

    "urip://example.com/résumé.html",

Obviously, while I appreciate the effort of the authors to place a French word in the example, it obviously confuses sed…

comment:2 Changed 13 years ago by Veence (Vincent)

More specifically, the 'é's appear not be UTF-8 encoded, which causes the failure.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cedric.luthi@… removed
Keywords: replace removed
Owner: changed from macports-tickets@… to cedric.luthi@…
Summary: Compiling libxml2 fails: "sed: RE error: illegal byte sequence"libxml2: sed: RE error: illegal byte sequence

What version of OS X are you running? I've seen many sed encoding issues fixed in other ports and in MacPorts base recently, for Mountain Lion...

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.