Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6136f4c0
Commit
6136f4c0
authored
Feb 01, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Encode non-ASCII characters outside comments
parent
39cc3749
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
modules/demux/m3u.c
modules/demux/m3u.c
+12
-7
No files found.
modules/demux/m3u.c
View file @
6136f4c0
/*****************************************************************************
* m3u.c: a meta demux to parse pls, m3u, asx et b4s playlists
*****************************************************************************
* Copyright (C) 2001-200
4
the VideoLAN team
* Copyright (C) 2001-200
6
the VideoLAN team
* $Id$
*
* Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
* Gildas Bazin <gbazin@videolan.org>
* Clment Stenac <zorglub@via.ecp.fr>
* Cl
é
ment Stenac <zorglub@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -217,12 +217,17 @@ static void XMLSpecialChars ( char *str )
{
if
(
*
src
==
'&'
)
{
if
(
!
strncasecmp
(
src
,
"à"
,
6
)
)
*
dst
++
=
''
;
else
if
(
!
strncasecmp
(
src
,
"î"
,
6
)
)
*
dst
++
=
''
;
/* FIXME:
* - should probably accept any sequence, rather than only those
* commonly found in French.
* - output may have to be UTF-8 encoded (cannot assume Latin-1)
*/
if
(
!
strncasecmp
(
src
,
"à"
,
6
)
)
*
dst
++
=
'\xe0'
;
else
if
(
!
strncasecmp
(
src
,
"î"
,
6
)
)
*
dst
++
=
'\xee'
;
else
if
(
!
strncasecmp
(
src
,
"'"
,
6
)
)
*
dst
++
=
'\''
;
else
if
(
!
strncasecmp
(
src
,
"è"
,
6
)
)
*
dst
++
=
''
;
else
if
(
!
strncasecmp
(
src
,
"é"
,
6
)
)
*
dst
++
=
''
;
else
if
(
!
strncasecmp
(
src
,
"ê"
,
6
)
)
*
dst
++
=
''
;
else
if
(
!
strncasecmp
(
src
,
"è"
,
6
)
)
*
dst
++
=
'
\xe8
'
;
else
if
(
!
strncasecmp
(
src
,
"é"
,
6
)
)
*
dst
++
=
'
\xe9
'
;
else
if
(
!
strncasecmp
(
src
,
"ê"
,
6
)
)
*
dst
++
=
'
\xea
'
;
else
{
*
dst
++
=
'?'
;
...
...
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