Skip to content
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

UnicodeEncodeError in license() #48950

Closed
mnewman mannequin opened this issue Dec 19, 2008 · 2 comments
Closed

UnicodeEncodeError in license() #48950

mnewman mannequin opened this issue Dec 19, 2008 · 2 comments
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@mnewman
Copy link
Mannequin

mnewman mannequin commented Dec 19, 2008

BPO 4700
Nosy @amauryfa

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:

assignee = None
closed_at = <Date 2008-12-19.23:00:16.004>
created_at = <Date 2008-12-19.14:02:57.002>
labels = ['OS-windows', 'type-crash']
title = 'UnicodeEncodeError in license()'
updated_at = <Date 2008-12-19.23:00:16.002>
user = 'https://bugs.python.org/mnewman'

bugs.python.org fields:

activity = <Date 2008-12-19.23:00:16.002>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2008-12-19.23:00:16.004>
closer = 'amaury.forgeotdarc'
components = ['Windows']
creation = <Date 2008-12-19.14:02:57.002>
creator = 'mnewman'
dependencies = []
files = []
hgrepos = []
issue_num = 4700
keywords = []
message_count = 2.0
messages = ['78057', '78074']
nosy_count = 2.0
nosy_names = ['amaury.forgeotdarc', 'mnewman']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue4700'
versions = ['Python 3.0']

@mnewman
Copy link
Mannequin Author

mnewman mannequin commented Dec 19, 2008

UnicodeEncodeError occurs for Microsoft portion of "license()".
Confirmed on 3 separate Windows XP computers:

Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> license()
A. HISTORY OF THE SOFTWARE

==========================

Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC. Guido remains Python's

... skipping to end ...

distribution specified by Microsoft. In particular, you must require
distributors and external end users to agree to terms that protect the
Microsoft Distributable Code at least as much as Microsoft's own
requirements for the Distributable Code. See Microsoft's documentation
(included in its developer tools and on its website at microsoft.com)
for specific details.

Redistribution of the Windows binary build of the Python interpreter
complies with this agreement, provided that you do not:

  • alter any copyright, trademark or patent notice in Microsoft's
    Hit Return for more, or q (and Return) to quit:
    Distributable Code;
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python30\lib\site.py", line 385, in __call__
    print(self.__lines[i])
  File "C:\Python30\lib\io.py", line 1491, in write
    b = encoder.encode(s)
  File "C:\Python30\lib\encodings\cp437.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in
position
15: character maps to <undefined>

@mnewman mnewman mannequin added OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Dec 19, 2008
@amauryfa
Copy link
Member

Fixed in r67859 (trunk), r67860 (py3k) and r67861 (3.0)
Thanks for the report!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant