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
0f6f58c6
Commit
0f6f58c6
authored
Dec 10, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* don't convert
UTF-8
->
UTF-8
because we found a BOM.
parent
a5e04c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
src/input/stream.c
src/input/stream.c
+14
-7
No files found.
src/input/stream.c
View file @
0f6f58c6
...
...
@@ -1428,19 +1428,26 @@ char * stream_ReadLine( stream_t *s )
s
->
i_char_width
=
2
;
i_bom_size
=
2
;
}
/* Seek past the offset */
stream_Seek
(
s
,
i_bom_size
);
p_data
+=
i_bom_size
;
i_data
-=
i_bom_size
;
/* Seek past the BOM */
if
(
i_bom_size
)
{
stream_Seek
(
s
,
i_bom_size
);
p_data
+=
i_bom_size
;
i_data
-=
i_bom_size
;
}
/* Open the converter if we need it */
if
(
psz_encoding
!=
NULL
)
{
msg_Dbg
(
s
,
"%s BOM detected"
,
psz_encoding
);
s
->
conv
=
vlc_iconv_open
(
"UTF-8"
,
psz_encoding
);
if
(
s
->
conv
==
(
vlc_iconv_t
)
-
1
)
if
(
s
->
i_char_width
>
1
)
{
msg_Err
(
s
,
"iconv_open failed"
);
s
->
conv
=
vlc_iconv_open
(
"UTF-8"
,
psz_encoding
);
if
(
s
->
conv
==
(
vlc_iconv_t
)
-
1
)
{
msg_Err
(
s
,
"iconv_open failed"
);
}
}
if
(
psz_encoding
)
free
(
psz_encoding
);
}
...
...
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