~ubuntu-branches/ubuntu/jaunty/xterm/jaunty

« back to all changes in this revision

Viewing changes to button.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Branden Robinson, Julien Cristau
  • Date: 2007-06-18 14:02:22 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070618140222-pk2uof6pyni5omqf
Tags: 226-1
[ Branden Robinson ]
* Remove debian/NEWS; the events it attested to (like the "upcoming 7.0
  modularization" are no longer news, and are in the past.

[ Julien Cristau ]
* Configure with --with-tty-group=tty, to prevent security problems in case
  of buggy build environment (closes: #349142).
* New upstream release.
  + fix  an  infinite  loop  when  showing  a  2-column character in a
    1-column screen (closes: #426863).
  + add  XF86Paste  and  SunPaste  to the default translations
    (closes: #422521, patch by Bernhard R Link).
  + improve  permissions  logic  when  closing pseudo-terminal
    (closes: #12261, patch by Nathanael Nerode, analysis by Richard
    Braakman).
  + add  a check in case someone tries to call the popup-menu() action
    on a menu which is not initialized (closes: #426364).
  + fix error-checking on internal font switching for "Selection" menu
    entry (closes: #421523).
  + amend select/paste change from patch #225 by limiting it to
    non-UTF-8/non-KOI8-R encoding (closes: #420974).
  + add  workaround  for  groff  ".URL" codes which are not present in
    some commonly-used bitmap fonts (closes: #418324).
* Update reference to xlibs-data in xterm's description, refer to xbitmaps
  instead.
* Build-depend on desktop-file-utils to install the new desktop files for
  xterm and uxterm, and change debian/rules and debian/xterm.install to
  install these files and the icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: button.c,v 1.272 2007/03/19 23:42:48 tom Exp $ */
 
1
/* $XTermId: button.c,v 1.274 2007/06/17 12:55:47 tom Exp $ */
2
2
 
3
3
/*
4
4
 * Copyright 1999-2006,2007 by Thomas E. Dickey
1039
1039
    Time time;
1040
1040
};
1041
1041
 
1042
 
static int
1043
 
DECtoASCII(int ch)
 
1042
static unsigned
 
1043
DECtoASCII(unsigned ch)
1044
1044
{
1045
1045
    if (ch < 32) {
1046
1046
        ch = "###########+++++##-##++++|######"[ch];
1087
1087
                    if (eqv == value)
1088
1088
                        eqv = '#';
1089
1089
                    *q++ = eqv;
1090
 
                    if (iswide(value))
 
1090
                    if (iswide((wchar_t) value))
1091
1091
                        *q++ = ' ';
1092
1092
                }
1093
1093
            }
1611
1611
            GettingSelection(dpy, *type, line, *length);
1612
1612
 
1613
1613
#if OPT_WIDE_CHARS
1614
 
            if (*type == XA_UTF8_STRING(dpy)) {
 
1614
            if (*type == XA_UTF8_STRING(dpy) &&
 
1615
                !(screen->wide_chars || screen->c1_printable)) {
1615
1616
                rc = Xutf8TextPropertyToTextList(dpy, &text_prop,
1616
1617
                                                 &text_list, &text_list_count);
1617
1618
                if (text_list != NULL && text_list_count != 0) {
3492
3493
               are in memory attached to the HIDDEN_CHAR */
3493
3494
            if_OPT_WIDE_CHARS(screen, {
3494
3495
                if (screen->utf8_mode != uFalse) {
3495
 
                    int ch;
 
3496
                    unsigned ch;
3496
3497
                    int off;
3497
3498
                    for (off = OFF_FINAL; off < MAX_PTRS; off += 2) {
3498
3499
                        if ((ch = XTERM_CELLC(row, i, off)) == 0)
3507
3508
        if (screen->utf8_mode != uFalse) {
3508
3509
            lp = convertToUTF8(lp, (c != 0) ? c : ' ');
3509
3510
            if_OPT_WIDE_CHARS(screen, {
3510
 
                int ch;
 
3511
                unsigned ch;
3511
3512
                int off;
3512
3513
                for (off = OFF_FINAL; off < MAX_PTRS; off += 2) {
3513
3514
                    if ((ch = XTERM_CELLC(row, i, off)) == 0)