Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b575b4da
Commit
b575b4da
authored
Sep 29, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: don't use *Locale() conversion functions when compiled with wide characters support
parent
08c70360
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
modules/gui/ncurses.c
modules/gui/ncurses.c
+12
-4
No files found.
modules/gui/ncurses.c
View file @
b575b4da
...
...
@@ -426,7 +426,9 @@ static void Run( intf_thread_t *p_intf )
}
/* following functions are local */
#ifdef HAVE_NCURSESW_CURSES_H
# define KeyToUTF8( i, psz ) psz
#else
static
char
*
KeyToUTF8
(
int
i_key
,
char
*
psz_part
)
{
char
*
psz_utf8
,
*
psz
;
...
...
@@ -463,6 +465,7 @@ static char *KeyToUTF8( int i_key, char *psz_part )
memset
(
psz_part
,
0
,
6
);
return
psz_utf8
;
}
#endif
static
inline
int
RemoveLastUTF8Entity
(
char
*
psz
,
int
len
)
{
...
...
@@ -1177,18 +1180,23 @@ static void mvnprintw( int y, int x, int w, const char *p_fmt, ... )
p_buf
[
w
/
2
]
=
'.'
;
p_buf
[
w
/
2
+
1
]
=
'.'
;
}
#ifdef HAVE_NCURSESW_CURSES_H
mvprintw
(
y
,
x
,
"%s"
,
p_buf
);
#else
psz_local
=
ToLocale
(
p_buf
);
mvprintw
(
y
,
x
,
"%s"
,
psz_local
);
LocaleFree
(
p_buf
);
#endif
}
else
{
char
*
psz_local
=
ToLocale
(
p_buf
);
mvprintw
(
y
,
x
,
"%s"
,
psz_local
);
LocaleFree
(
p_buf
);
#ifdef HAVE_NCURSESW_CURSES_H
mvprintw
(
y
,
x
,
"%s"
,
p_buf
);
mvhline
(
y
,
x
+
i_width
,
' '
,
w
-
i_width
);
#else
char
*
psz_local
=
ToLocale
(
p_buf
);
mvprintw
(
y
,
x
,
"%s"
,
psz_local
);
LocaleFree
(
p_buf
);
mvhline
(
y
,
x
+
i_len
,
' '
,
w
-
i_len
);
#endif
}
...
...
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