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
ddab531b
Commit
ddab531b
authored
Nov 20, 2008
by
Konstantin Sobolev
Committed by
Max Kellermann
Nov 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path: fix g_convert() argument order
g_convert() wants the destination character set first. This was mixed up.
parent
1f50146e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
path.c
src/path.c
+2
-2
No files found.
src/path.c
View file @
ddab531b
...
...
@@ -33,7 +33,7 @@ char *fs_charset_to_utf8(char *dst, const char *str)
GError
*
error
=
NULL
;
p
=
g_convert
(
str
,
-
1
,
fs_charset
,
"utf-8"
,
"utf-8"
,
fs_charset
,
NULL
,
NULL
,
&
error
);
if
(
p
==
NULL
)
{
/* no fallback */
...
...
@@ -52,7 +52,7 @@ char *utf8_to_fs_charset(char *dst, const char *str)
GError
*
error
=
NULL
;
p
=
g_convert
(
str
,
-
1
,
"utf-8"
,
fs_charset
,
fs_charset
,
"utf-8"
,
NULL
,
NULL
,
&
error
);
if
(
p
==
NULL
)
{
/* fall back to UTF-8 */
...
...
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