mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Run case sensitivity check (#1586) on bytestring
This should avoid problems when querying for Unicode paths.
This commit is contained in:
parent
d29cc7b2c0
commit
3c8823db96
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ class PathQuery(dbcore.FieldQuery):
|
|||
# By default, the case sensitivity depends on the filesystem
|
||||
# that the query path is located on.
|
||||
if case_sensitive is None:
|
||||
case_sensitive = beets.util.case_sensitive(pattern)
|
||||
path = util.bytestring_path(util.normpath(pattern))
|
||||
case_sensitive = beets.util.case_sensitive(path)
|
||||
self.case_sensitive = case_sensitive
|
||||
|
||||
# Use a normalized-case pattern for case-insensitive matches.
|
||||
|
|
|
|||
Loading…
Reference in a new issue