~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Modules/_tkinter.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
661
661
    }
662
662
 
663
663
    strcpy(argv0, className);
664
 
    if (isupper(Py_CHARMASK(argv0[0])))
665
 
        argv0[0] = tolower(Py_CHARMASK(argv0[0]));
 
664
    if (Py_ISUPPER(Py_CHARMASK(argv0[0])))
 
665
        argv0[0] = Py_TOLOWER(Py_CHARMASK(argv0[0]));
666
666
    Tcl_SetVar(v->interp, "argv0", argv0, TCL_GLOBAL_ONLY);
667
667
    ckfree(argv0);
668
668
 
993
993
        for (i = 0; i < size; i++) {
994
994
            if (inbuf[i] >= 0x10000) {
995
995
                /* Tcl doesn't do UTF-16, yet. */
996
 
                PyErr_SetString(PyExc_ValueError,
997
 
                                "unsupported character");
 
996
                PyErr_Format(PyExc_ValueError,
 
997
                             "character U+%x is above the range "
 
998
                             "(U+0000-U+FFFF) allowed by Tcl",
 
999
                             inbuf[i]);
998
1000
                ckfree(FREECAST outbuf);
999
1001
                return NULL;
1000
1002
            }