-
Notifications
You must be signed in to change notification settings - Fork 10k
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
File encoding LC_ALL warning #13185
Comments
That's a limitation of CPython. Without LC_ALL, Python can't handle non-ASCII characters reliably on Linux, and non-ASCII characters so common in youtube-dl that removing the warning will bring more confusion for youtube-dl users. See http://bugs.python.org/issue28180 for CPython's solution for such scenarios. Update 2018/01/11: CPython 3.7a4 has almost done UTF-8 handling without LC_ALL. |
Thanks for sharing this. The key is choosing a locale with ".UTF-8". Other kinds of locales may work but no guarantee. |
fix problem with line 14 to: |
I using ubuntu 18 and have this problem WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. pls how to fix this on ubuntu server..? |
Thanks bro! It solved my problem. |
i cant find file download.sh |
Please follow the guide below
Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2017.05.23. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
I've reproduced the error on following fresh installed docker based systems:
(additional the error was reproduced on about 5 separate other systems which are using a software which has youtube-dl support, same warning with the same parameter like above)
The error is that the warning:
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
is displayed.I've no idea how I can fix this and think this is an youtube-dl issue because of the fresh new installed systems.
Edit
After generating the locales and set the
LC_ALL
environment variable it works fine.But are you sure, that you always want to show this warning when the env var is not set?
The text was updated successfully, but these errors were encountered: