New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_tkinter.c doesn't build on Redhat 9 #38292
Comments
Martin, _tkinter doesn't build on Redhat 9 because: TCL_UTF_MAX is defined to be 6, not 3. I don't know I changed line 92 to: #if TCL_UTF_MAX != 3 && TCL_UTF_MAX != 6
and I was able to bring a window up with a push button. |
Logged In: YES What Tcl version is that? I didn't know Tcl does UCS-4... The comment says it all: Tcl_Unichar is expected to be two Alternatively, proclaim that "Tcl is UCS-4, Python is UCS-2" Perhaps Tcl isn't UCS-4, but uses surrogate pairs instead? |
Logged In: YES Tcl/Tk version is 8.3.5. There were some warnings from |
Logged In: YES I just looked at their source RPM, and I can't believe what There is tcltk-8.3.5-ucs4-for-py.patch, which reads --- tcl8.3.5/generic/tcl.h~ 2003-02-04 10:01:20.000000000 +0900
+++ tcl8.3.5/generic/tcl.h 2003-02-04 10:01:20.000000000 +0900
@@ -1604,13 +1604,13 @@
* Unicode character in UTF-8.
*/
-#define TCL_UTF_MAX 3
+#define TCL_UTF_MAX 6
/*
* This represents a Unicode character.
*/
-typedef unsigned short Tcl_UniChar;
+typedef wchar_t Tcl_UniChar;
/*
* Deprecated Tcl procedures: I'd say they have tricked themselves: Py22 would fail to I would suggest that we mandate UCS-4 on Redhat 9 (through |
Logged In: YES I have fixed this in _tkinter.c 1.155; Python must be build It turns out that Tcl isn't really prepared for UCS-4, e.g. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: