Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6987f2ba
Commit
6987f2ba
authored
Nov 30, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Charset: use macro HAVE_FS_CHARSET internally
parent
563db580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Charset.cxx
src/fs/Charset.cxx
+4
-4
No files found.
src/fs/Charset.cxx
View file @
6987f2ba
...
...
@@ -35,7 +35,7 @@
#include <assert.h>
#include <string.h>
#ifdef HAVE_
GLIB
#ifdef HAVE_
FS_CHARSET
static
constexpr
Domain
convert_domain
(
"convert"
);
...
...
@@ -121,13 +121,13 @@ PathToUTF8(const char *path_fs)
{
assert
(
path_fs
!=
nullptr
);
#ifdef HAVE_
GLIB
#ifdef HAVE_
FS_CHARSET
if
(
fs_charset
.
empty
())
{
#endif
auto
result
=
std
::
string
(
path_fs
);
FixSeparators
(
result
);
return
result
;
#ifdef HAVE_
GLIB
#ifdef HAVE_
FS_CHARSET
}
GIConv
conv
=
g_iconv_open
(
"utf-8"
,
fs_charset
.
c_str
());
...
...
@@ -155,7 +155,7 @@ PathToUTF8(const char *path_fs)
#endif
}
#ifdef HAVE_
GLIB
#ifdef HAVE_
FS_CHARSET
char
*
PathFromUTF8
(
const
char
*
path_utf8
)
...
...
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