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
Broken python-config generated with Estonian locale #72445
Comments
When Estonian locale (e.g. et_EE.UTF-8) is set, then the following line in Makefile.pre.in does not match all required strings: sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config In Estonian locale: Run-time result without fix applied: $ LC_ALL=C bash python-config --help
python-config: line 45: LDVERSION: command not found
python-config: line 49: VERSION: command not found
python-config: line 51: prefix: command not found
python-config: line 51: VERSION: command not found
Usage: python-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir I attach patch (also fixing distclean target). |
I get "500 Server Error" page when trying to write response in Rietveld, so I will write here... On 2016/09/23 16:00:58, storchaka wrote:
Yes. $ export LC_ALL=et_EE.UTF-8
$ mkdir -p /tmp/test/{a,t,z}
$ find /tmp/test/[a-zA-Z]*
/tmp/test/a
/tmp/test/z
$ LC_ALL=C find /tmp/test/[a-zA-Z]*
/tmp/test/a
/tmp/test/z
$ LC_ALL=C; find /tmp/test/[a-zA-Z]*
/tmp/test/a
/tmp/test/t
/tmp/test/z
$ |
Thanks for your explanation, now I see this. The patch LGTM. |
New changeset 6110997dd6e7 by Serhiy Storchaka in branch '3.5': New changeset 1b9e71f5de83 by Serhiy Storchaka in branch '3.6': New changeset a2c5179bce01 by Serhiy Storchaka in branch 'default': New changeset f2247d1cb884 by Serhiy Storchaka in branch '2.7': |
"LC_ALL=C; find" are you sure for ";"? |
This is the question that I asked Arfrever. |
"Expansion is performed here by shell (spawned by make) itself before arguments are passed to find. So LC_ALL=C must be set as a separate command." Oh. I expected at least "export LANG" somewhere. IMHO it deserves a comment explaining the surprising ";". Does it work if it's written on two lines? |
I don't know if export is needed. I see the same behavior with and without
No, it doesn't work. |
New changeset 17f2b6b2e24c by Victor Stinner in branch '3.5': New changeset f256bd5b8418 by Victor Stinner in branch '2.7': |
Thanks Victor! |
Misc/NEWS
so that it is managed by towncrier #552Note: 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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: