Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3e43d99c
Commit
3e43d99c
authored
Aug 28, 2013
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cue: support Latin1 cue files (fix #9238)
parent
705d9918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
share/lua/playlist/cue.lua
share/lua/playlist/cue.lua
+8
-0
No files found.
share/lua/playlist/cue.lua
View file @
3e43d99c
...
...
@@ -31,7 +31,15 @@ function probe()
end
-- Helpers
function
is_utf8
(
src
)
return
vlc
.
strings
.
from_charset
(
"UTF-8"
,
src
)
==
src
end
function
cue_string
(
src
)
if
not
is_utf8
(
src
)
then
-- Convert to UTF-8 since it's probably Latin1
src
=
vlc
.
strings
.
from_charset
(
"ISO_8859-1"
,
src
)
end
local
sub
=
string.match
(
src
,
"^\"
(.
*
)
\
".*$"
);
if
(
sub
)
then
return
sub
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment