Skip to content

Fix redisplay() missing & history-files with non-latin chars - #56

Open
ankostis wants to merge 4 commits into
pyreadline:masterfrom
ankostis:redisplay
Open

ankostis wants to merge 4 commits into
pyreadline:masterfrom
ankostis:redisplay

Conversation

@ankostis

@ankostis ankostis commented Jun 9, 2017

Copy link
Copy Markdown

A band-aid PR that fixes #49 and #55 annoying bugs.

eric-wieser and others added 4 commits January 4, 2017 19:51
… on non-Latin

+ Use io.open() to pass `encoding='utf-8'` when opening history-file.
+ Use `with ...` resource management not to leak file-handles.
+ The errors was: UnicodeDecodeError: 'charmap' codec can't decode byte
0x8f in position 1818: character maps to <undefined>
@musm

musm commented Dec 25, 2020

Copy link
Copy Markdown

sadly it looks like this will never be merged

@skywind3000

Copy link
Copy Markdown

Why not merge this ?

@brgirgis

Copy link
Copy Markdown

Please raise your PR here and we can do a quick release.

@ankostis

ankostis commented Jan 23, 2022 •

Copy link
Copy Markdown
Author

Ok, done with brgirgis/pyreadline3#1

@eabase

eabase commented Jan 25, 2022

Copy link
Copy Markdown

@ankostis I think something got messed up, since @brgirgis deleted that repo in favor of pyreadline3:

@ankostis

ankostis commented Jan 25, 2022 •

Copy link
Copy Markdown
Author

@brgirgis inform me when are you stabilized repos, to then push my PR
(please, don't delete stuff without notification, or else i don;t get the chance to salvage content).

@eabase thanks!

@brgirgis

Copy link
Copy Markdown

pyreadline3/pyreadline3 is the final destination. Sorry for the confusion.

@ankostis

Copy link
Copy Markdown
Author

note, you have broke fork-relationship, so now i don;t get a PR automatically when landing on the new repo :-(.

@ankostis

Copy link
Copy Markdown
Author

Ok, rewritten my original PR, please @brgirgis approve my workflow.

akruis pushed a commit to science-computing/pyreadline that referenced this pull request Sep 21, 2023
… on non-Latin

+ Use io.open() to pass `encoding='utf-8'` when opening history-file.
+ Use `with ...` resource management not to leak file-handles.
+ The errors was: UnicodeDecodeError: 'charmap' codec can't decode byte
0x8f in position 1818: character maps to <undefined>

(cherry picked from commit e85c860)

pyreadline#56:
This commit and the previous three commits are from
https://github.com/ankostis/pyreadline/tree/redisplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: module 'readline' has no attribute 'redisplay'

6 participants