Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Printing the first letter of the Hebrew alphabet (U05D0) kills script?

by ELISHEVA (Prior)
on Mar 08, 2011 at 17:25 UTC ( [id://892041]=note: print w/replies, xml ) Need Help??


in reply to Re: Printing the first letter of the Hebrew alphabet (U05D0) kills script?
in thread Printing the first letter of the Hebrew alphabet (U05D0) kills script?

At this point all ideas help - speculative or untested or not.

However, I wasn't as clear as I could have been in my original post. The terminal does not hang. It just stops displaying any output and returns immediately to the prompt. So there is no opportunity to issue a manual ^F of any sort. I've updated the OP to make it clearer.

  • Comment on Re^2: Printing the first letter of the Hebrew alphabet (U05D0) kills script?

Replies are listed 'Best First'.
Re^3: Printing the first letter of the Hebrew alphabet (U05D0) kills script?
by kennethk (Abbot) on Mar 08, 2011 at 18:17 UTC
    Do you get the same problem with bet (0x05D1)? How about leftwards double arrow (0x21D0, where 0x21 is ! in ASCII)? If it's a single character issue, exploration of the parameter space might help out.

      I wrote a little script to run the test for a variety of codepoints, some you suggested and a few others. Increasingly it is looking like xterm is treating certain byte sequences as some sort of escape seequence.

      The script let me output in sequence subsets of the following character list: (0x5D0..0x5Df,0xD105,0x21D0) and tagged each output line with the ordinal value of the character being tested so I could be sure of what output line corresponded with what character. What I saw was this:

      • 0x05D1..0x05D7,0x05D9,0x05DC display a single glyph with no ill effects (not a Hebrew letter-but that doesn't matter so much at this point. That is likely a font issue.)

      • 0x05D8,0x05DD-0x05DF as well as 0x21D0 cause output to stop in the same way that 0x05D0 does on when xterm is run with wide-char turned off - see above

      • 0x05DA seems be treated by the xterm window like an escape sequence: although it outputs everything including the END blocks, it dumps a lot of characters out after the END blocks do their thing and the script terminates. There are characters both before and after the prompt ("myname@debian: "). It looks something like this:^[[?1;2c^[[?1;2cmyname@debian: 1;2c1;2c

      • 0x05DB replaces the "I" in I'm dying with what looks like a tab

      • 0xD105 appears to trigger some sort of vertical tab effect: an accented "i" character is printed followed by what looks like 2 newlines.

      Even more interesting is that there are sequencing effects. For instance outputting the three characters 0x05D0 0x05D1 0x05D2 causes the test for 0x5D0 to stop immediately after outputting 0x05D0 and to resume when 0x5D1 is output by its test. 0x5d2 is printed in full.

      Similarly, 0x05D0 followed somewhat later by 0x05D2 causes output to be displayed up until 0x05D0 is sent to the terminal and output to resume when 0x05D2 is sent to the terminal.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-16 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found