Skip to content

Commit

Permalink
Make Unicode work a bit better on Windows...
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Lundh committed Jun 26, 2001
1 parent ac93bc2 commit 9b14ab3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Include/unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ Copyright (c) Corporation for National Research Initiatives.

/* --- Internal Unicode Format -------------------------------------------- */

/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
properly set, but the default rules below doesn't set it. I'll
sort this out some other day -- [email protected] */

#ifndef Py_UNICODE_SIZE
#error Must define Py_UNICODE_SIZE
#endif

/* experimental UCS-4 support. enable at your own risk! */
#undef USE_UCS4_STORAGE
#if Py_UNICODE_SIZE == 4
Expand Down
9 changes: 9 additions & 0 deletions PC/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,15 @@ typedef unsigned long uintptr_t;
/* Define if you want to use the GNU readline library */
/* #define WITH_READLINE 1 */

/* Define if you want to have a Unicode type. */
#define Py_USING_UNICODE

/* Define as the integral type used for Unicode representation. */
#define PY_UNICODE_TYPE unsigned short

/* Define as the size of the unicode type. */
#define Py_UNICODE_SIZE SIZEOF_SHORT

/* Define if you want cycle garbage collection */
#define WITH_CYCLE_GC 1

Expand Down

0 comments on commit 9b14ab3

Please sign in to comment.