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
0970461e
Commit
0970461e
authored
Aug 21, 2012
by
Naohiro KORIYAMA
Committed by
Felix Paul Kühne
Aug 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Fix for Mac OS X filesystem filename encoding
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
d2f181ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/text/url.c
src/text/url.c
+14
-0
No files found.
src/text/url.c
View file @
0970461e
...
...
@@ -32,6 +32,7 @@
#include <vlc_common.h>
#include <vlc_url.h>
#include <vlc_charset.h>
#include <vlc_fs.h>
#include <ctype.h>
...
...
@@ -170,6 +171,19 @@ char *vlc_path2uri (const char *path, const char *scheme)
path
=
p
;
#endif
#if defined( __APPLE__ )
/* Mac OS X uses Unicode for their files and folder name with HFS+:
* Unicode Normalization Form D (NFD) (with some modification).
* But simply converting to NFC causes some problem.
* So using UTF-8-MAC, encoding for HFS+, to convert to UTF-8.
*
* Note: UTF-8-MAC is only implemented for built-in iconv on Mac OS X.
*/
char
*
psz_tmp_path
=
FromCharset
(
"UTF-8-MAC"
,
path
,
strlen
(
path
));
strcpy
((
char
*
)
path
,
psz_tmp_path
);
free
(
psz_tmp_path
);
#endif
#if defined( _WIN32 ) || defined( __OS2__ )
/* Drive letter */
if
(
isalpha
((
unsigned
char
)
path
[
0
])
&&
(
path
[
1
]
==
':'
))
...
...
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