<?xml version="1.0" encoding="UTF-8"?>
<essay xml:lang="en" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:gal="http://norman.walsh.name/rdf/gallery#">
<info>
    
    
    
    
    
    
    
    
<title>Perl Bug?</title><biblioid class="uri">http://norman.walsh.name/2004/05/11/perlBug</biblioid>
<volumenum>7</volumenum>
<issuenum>80</issuenum>
<pubdate>2004-05-11T17:30:00-04:00</pubdate>
<date>$Date: 2005-09-11 10:27:02 -0400 (Sun, 11 Sep 2005) $</date>
<author>
      <personname>
<firstname>Norman</firstname>
	<surname>Walsh</surname>
</personname>
    </author>
<copyright>
      <year>2004</year>
      <holder>Norman Walsh</holder>
    </copyright>
<abstract>
<para>Something has changed in Perl 5.8.4 that breaks my conduits, maybe yours.
(Updated: a little debugging after all.)</para>
</abstract>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Palm"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Programming"/>
</info>

<para xml:id="p1">I upgraded today (<command>apt-get</command> rocks) and got Perl 5.8.4.
Something has gone horribly wrong in my Palm XML Conduits. It’s got something
to do with Unicode and ISO-8859-1 characters and Data::Dumper and maybe some
of my own code.</para>

<para xml:id="p2">The publicly available conduits are much older than the ones I’m running
(I’m <emphasis>way</emphasis> overdue for a new release), but I suggest you
tread carefully.</para>

<para xml:id="p3">I’m not likely to have time to investigate in the immediate future.
For the moment, I’ll probably hack some ASCII encoding of the characters together.
</para>

<para xml:id="p4">Ugh.</para>

<para xml:id="p5">Yes, I’m sure I should report the bug somewhere, but I just can’t scrape
together the time.</para>

<para xml:id="p6">
    <emphasis>Ugh.</emphasis>
  </para>

<section xml:id="s1">
<title>Update 12 May 2004</title>

<para xml:id="p7">I’m on the road again this week, so I scraped together
a couple of extra hours and did a little debugging.  It appears to be have been related
to my use of <code>XML::DOM::encodeText(…)</code> and
<code>XML::DOM::XmlUtf8Encode(…)</code>. After a little shotgun debugging and
reading about Perl Unicode support, I replaced the former 
with <code>unpack("U0U*", …)</code> and the latter with
<code>pack("U", …)</code>.</para>

<para xml:id="p8">That’s made the problem go away, which is sort of like solving the problem.
Sort of. Anyway, that’s where I’m going to stop.</para>

<para xml:id="p9">(btw, the upgrade in question was from Perl 5.8.3 to Perl 5.8.4, nothing
as dramatic as going from 5.6 or something.)</para>
</section>
</essay>

