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

sphinx-quickstart shows Mojibake characters around a question line #7118

Closed
t2y opened this issue Feb 9, 2020 · 2 comments
Closed

sphinx-quickstart shows Mojibake characters around a question line #7118

t2y opened this issue Feb 9, 2020 · 2 comments

Comments

@t2y
Copy link

t2y commented Feb 9, 2020

Describe the bug

sphinx-quickstart command asks some questions, however it shows Mojibake characters around question lines. See below screenshot.

I guess this issue is my environment issue and not come from sphinx. But, I file to share as an information. Hopefully, someone shares us how to resolve.

To Reproduce

Steps to reproduce the behavior:

(sphinx3) $ pip install sphinx
(sphinx3) $ sphinx-quickstart --version
sphinx-quickstart 2.3.1
(sphinx3) $ export LANG=en_US.UTF-8
(sphinx3) $ sphinx-quickstart 
(sphinx3) $ LC_ALL=C.UTF-8 sphinx-quickstart

Expected behavior

There are no Mojibake characters.

Screenshots

sphinx-quickstart-en-mojibake1

Environment info

  • OS: [Ubuntu 18.04.3]
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
  • Python version: [3.8.1]
  • Sphinx version: [2.3.1]
  • Sphinx extensions: [none]
  • Extra tools: [gnome-terminal]
$ gnome-terminal --version
# GNOME Terminal 3.28.2 using VTE 0.52.2 +GNUTLS -PCRE2
@t2y t2y added the type:bug label Feb 9, 2020
@t2y
Copy link
Author

t2y commented Feb 24, 2020

I found that python interpreter in my environment didn't have readline extension.

WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?

After I installed libreadline-dev and re-compiled python interpreter, I confirmed this issue won't be reproduced.

$ sudo apt install -y libreadline-dev
$ pyenv install 3.8.1

@tk0miya
Copy link
Member

tk0miya commented Jan 24, 2021

It seems escape sequence characters for readline are output even if the library not found. Finally I can't create the reproducible environment. But I suppose this can be fixed.

tk0miya added a commit to tk0miya/sphinx that referenced this issue Jan 24, 2021
Do not output escape sequence for libreadline (\1 and \2) when
libreadline is unavailable.
@tk0miya tk0miya added this to the 3.5.0 milestone Jan 24, 2021
tk0miya added a commit that referenced this issue Jan 25, 2021
Fix #7118: quickstart: got Mojibake if libreadline unavailable
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants