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
011757d8
Commit
011757d8
authored
May 11, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use AM_LANGINFO_CODESET in configure.ac, old configure.ac wasn't checking
for CODESET git-svn-id:
https://svn.musicpd.org/mpd/trunk@990
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
69cd6eac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
configure.ac
configure.ac
+4
-2
path.c
src/path.c
+2
-2
No files found.
configure.ac
View file @
011757d8
...
...
@@ -70,7 +70,9 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",)
AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",)
AC_CHECK_HEADER(langinfo.h,[enable_langinfo=yes;AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present])],enable_langinfo=no)
dnl doesn't work for systems that don't have CODESET like OpenBSD
dnl AC_CHECK_HEADER(langinfo.h,[enable_langinfo=yes;AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present])],enable_langinfo=no)
AM_LANGINFO_CODESET
AC_CHECK_HEADER(locale.h,[enable_locale=yes;AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present])],enable_locale=no)
if test x$enable_ipv6 = xyes; then
...
...
@@ -499,7 +501,7 @@ else
echo "locale support ................disabled"
fi
if test x$
enable_langinfo
= xyes; then
if test x$
am_cv_langinfo_codeset
= xyes; then
echo "langinfo support ..............enabled"
else
echo "langinfo support ..............disabled"
...
...
src/path.c
View file @
011757d8
...
...
@@ -29,7 +29,7 @@
#include <unistd.h>
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO
#ifdef HAVE_LANGINFO
_CODESET
#include <locale.h>
#include <langinfo.h>
#endif
...
...
@@ -138,7 +138,7 @@ void initPaths(char * playlistDirArg, char * musicDirArg) {
charset
=
strdup
(
getConf
()[
CONF_FS_CHARSET
]);
}
#ifdef HAVE_LOCALE
#ifdef HAVE_LANGINFO
#ifdef HAVE_LANGINFO
_CODESET
else
if
((
originalLocale
=
setlocale
(
LC_CTYPE
,
NULL
)))
{
char
*
temp
;
char
*
currentLocale
;
...
...
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