mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fixed bug #1915: Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support.
This commit is contained in:
parent
964ca4274f
commit
082c9b0267
4 changed files with 12 additions and 4 deletions
|
@ -1563,7 +1563,7 @@ PyTokenizer_Get(struct tok_state *tok, char **p_start, char **p_end)
|
|||
there, as it must be empty for PGEN, and we can check for PGEN only
|
||||
in this file. */
|
||||
|
||||
#ifdef PGEN
|
||||
#if defined(PGEN) || !defined(Py_USING_UNICODE)
|
||||
char*
|
||||
PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int* offset)
|
||||
{
|
||||
|
@ -1584,7 +1584,6 @@ dec_utf8(const char *enc, const char *text, size_t len) {
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
char *
|
||||
PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int *offset)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue