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
break our builds with a non-utf8 locale #2158
Conversation
that's interesting. I must not be configuring something wrong ocally for this test, because I have a ton of failures on py2.7 even when running it locally. I guess this wasn't as useful as i wanted it to be. I must be missing a setting. |
looks like our build no longer breaks after fixing the edit plugin. What exactly do you wanna support @sampsyo? Considering that once we go with click, we definitely wont' be supporting |
Good question. I'm still sad about Click bailing with an error when |
even BIG5 or or SHIFT-JIS? I have no idea how often they used today in practice though. |
I also don't. It seems like the kind options for beets would be, even for weird and exotic encodings, one of these two:
Click's approach, just exiting with an error, is less friendly. |
if 2 was possible, why wouldn't we just do that? I didn't think it'd be that easy though. If it was that easy, then why wouldn't click do it? |
finally got the errors i was seeing locally to show up. Uggh, that took way too long! Our builds are finally broken! |
some highlights/questions: The results here assume beets is run with a non-utf8 encoding:
Some thoughts/data on m3u: NOTE: All this brings to mind a question though.. Are the paths in the beets database currently portable between systems with different encodings? |
I don't think we can currently use |
It should be fine, as long as we use $ cat a.py
import b
def fa():
print('a')
b.fb()
def fa2():
print('a2')
$ cat b.py
import a
def fb():
print('b')
a.fa2()
$ python
Python 2.7.11 (default, Jan 15 2016, 18:35:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import a
>>> a.fa()
a
b
a2
>>>
$ python3
Python 3.5.2 (default, Jun 29 2016, 13:43:58)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import a
>>> a.fa()
a
b
a2
>>> The deal here is that you're free to do circular imports, but the namespaces won't actually be populated until the modules finish executing. So as long as all the references to edit: updated with a better example |
in the moment i forgot that bytes objects had |
@sampsyo : with your fixes to
I guess the key here for the ui going over the places where we have |
[appveyor skip]
[appveyor skip]
using |
Is this still relevant? |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is just to show how we do (not too well). If this is something
we wanna take care of outside of windows, then it would fall under
in the travis config