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
f0755417
Commit
f0755417
authored
Feb 13, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (From|To)Locale (closes #546)
parent
cb347302
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
configure.ac
configure.ac
+1
-1
src/misc/unicode.c
src/misc/unicode.c
+3
-5
No files found.
configure.ac
View file @
f0755417
...
@@ -382,7 +382,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd
...
@@ -382,7 +382,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd
dnl Check for system libs needed
dnl Check for system libs needed
need_libc=false
need_libc=false
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat
assert
)
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat)
dnl Check for usual libc functions
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof)
AC_CHECK_FUNCS(strdup strndup atof)
...
...
src/misc/unicode.c
View file @
f0755417
...
@@ -27,11 +27,7 @@
...
@@ -27,11 +27,7 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include "charset.h"
#include "charset.h"
#ifdef HAVE_ASSERT
#include <assert.h>
# include <assert.h>
#else
# define assert( c ) ((void)0)
#endif
#include <stdio.h>
#include <stdio.h>
#include <errno.h>
#include <errno.h>
...
@@ -183,6 +179,7 @@ char *FromLocale( const char *locale )
...
@@ -183,6 +179,7 @@ char *FromLocale( const char *locale )
vlc_iconv
(
from_locale
.
hd
,
NULL
,
NULL
,
NULL
,
NULL
);
vlc_iconv
(
from_locale
.
hd
,
NULL
,
NULL
,
NULL
,
NULL
);
}
}
vlc_mutex_unlock
(
&
from_locale
.
lock
);
vlc_mutex_unlock
(
&
from_locale
.
lock
);
*
optr
=
'\0'
;
assert
(
inb
==
0
);
assert
(
inb
==
0
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
iptr
==
'\0'
);
...
@@ -249,6 +246,7 @@ char *ToLocale( const char *utf8 )
...
@@ -249,6 +246,7 @@ char *ToLocale( const char *utf8 )
vlc_iconv
(
to_locale
.
hd
,
NULL
,
NULL
,
NULL
,
NULL
);
vlc_iconv
(
to_locale
.
hd
,
NULL
,
NULL
,
NULL
,
NULL
);
}
}
vlc_mutex_unlock
(
&
to_locale
.
lock
);
vlc_mutex_unlock
(
&
to_locale
.
lock
);
*
optr
=
'\0'
;
assert
(
inb
==
0
);
assert
(
inb
==
0
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
iptr
==
'\0'
);
...
...
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