• Bug#134880: rxvt: pasting accentuated characters from rxvt to nedit doe

    From Marc) (A.) (Lehmann@1:229/2 to All on Sat Aug 14 01:30:12 2004
    From: [email protected]

    SUMMARY: this is a bug in nedit, not in rxvt: I suggest closing this bug
    or re-assigning it to nedit.

    Hi,

    I am the author of rxvt-unicode, and I looked into this bug.

    In fact, this is not a rxvt problem, it's a bug in nedit. Nedit ignores the locale and doesn't support internationalized selections, which results in garbled characters.

    Technically, nedit requests a STRING selection, which cannot, in general, contain all kinds of accented characters. It's possible to store latin1
    in it, but that's not even enough for the euro character - in fact,
    your original bug report is incorrect, as your locale is not compatible
    with nedit (which requires a latin1 locale), and xterm is not able to
    paste a euro character into nedit, just as rxvt. The same is true for gnome-terminal or konsole, so the problem is not limited to rxvt, either,
    as your original bug report suggests.

    Some terminals also aren't internationalized (aterm etc.), they just paste
    the raw bytes into nedit. This works in some 8-bit-locales, but it's not correct, it just happens to work, and breaks down immediately when two
    apps have different locales, or you use other locales, such as double-byte
    or multibyte-encoded locales.

    There is no way to work around this bug in nedit short of breaking the
    protocol for correctly written applicaitons.

    The correct fix is to change nedit to support TEXT selections.

    HTH,

    --
    The choice of a |
    -----==- _GNU_ |
    ----==-- _ generation Marc Lehmann +--
    ---==---(_)__ __ ____ __ [email protected] |e|
    --==---/ / _ \/ // /\ \/ / http://schmorp.de/ --+
    -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE |
    |


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Laurent Bonnaud@1:229/2 to All on Wed Aug 18 18:40:04 2004
    From: [email protected]

    In fact, this is not a rxvt problem, it's a bug in nedit. Nedit ignores the locale and doesn't support internationalized selections, which results in garbled characters.

    Accentuated characters are not garbled on my system. They are just not
    pasted at all.

    Technically, nedit requests a STRING selection, which cannot, in general, contain all kinds of accented characters. It's possible to store latin1
    in it, but that's not even enough for the euro character -

    I am able to edit latin9 text with nedit. I just have to choose the
    right font:

    -*-courier-medium-r-normal--*-120-*-*-*-iso8859-15

    instead of the default:

    -*-courier-medium-r-normal--*-120-*-*-*-iso8859-1

    in fact,
    your original bug report is incorrect, as your locale is not compatible
    with nedit (which requires a latin1 locale),

    I don't know what's wrong with the latin9/fr_FR@euro locale. It works
    for me.

    and xterm is not able to paste a euro character into nedit, just as rxvt.

    xterm just needs to be started with the right font, for example:

    xterm -fn "-misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso8859-15"

    rxvt is indeed better because it is smart enough to choose the right
    font automatically based on the locale.

    Some terminals also aren't internationalized (aterm etc.), they just paste the raw bytes into nedit. This works in some 8-bit-locales, but it's not correct, it just happens to work, and breaks down immediately when two
    apps have different locales

    That would be good enough for me and most latin? users. Your position
    is "break the common use case for most users" on the justification that
    for complex use cases (that only a few users would need) it is not
    correct.

    There is no way to work around this bug in nedit short of breaking the protocol for correctly written applicaitons.

    The correct fix is to change nedit to support TEXT selections.

    You are probably right. Would it be possible for rxvt to detect if it
    is talking to a correctly written application or a broken one ?

    --
    Laurent Bonnaud.
    http://www.lis.inpg.fr/pages_perso/bonnaud/




    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)