Interesting. I ran more tests on different terminals and the results are baffling:
(1a) Windows command window: OK (1b) Windows command window + Activestate 5.8.4: OK (1c) Windows Notepad: OK (1d) Windows cygwin shell: Garbled (1e) Windows cygwin shell + cygwin perl 5.8.5: Garbled (1f) Windows cygwin shell + perl Activestate 5.8.4: OK (2a) Linux Fedora 2/3, X11 terminal: Garbled (2b) Linux Fedora 2/3 without X11: OK
While the regular Windows command window works fine (with and without perl), the cygwin shell, doesn't, however, calling Activestate perl 5.8.4 from within the cygwin shell seems to fix it.

On the Linux side, it didn't matter if perl was involved or not, neither did the version of perl (tried 5.6.1 - 5.8.6).

The terminal settings (stty -all) in 2a and 2b were identical, $TERM was "linux" vs. "xterm" but setting it to "linux" in X11 didn't help.

Strange, strange ...


In reply to Re^2: CueCat decoding with Perl - revisited by saintmike
in thread CueCat decoding with Perl - revisited by saintmike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.