Commit 4d843c66 authored by Masatoshi Kimura's avatar Masatoshi Kimura
Browse files

Bug 780430 - Declare encoding in config.status. r=glandium

parent 91d92e95
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -45,9 +45,11 @@ dnl Replace AC_OUTPUT to create and call a python config.status
define([AC_OUTPUT],
define([AC_OUTPUT],
[dnl Top source directory in Windows format (as opposed to msys format).
[dnl Top source directory in Windows format (as opposed to msys format).
WIN_TOP_SRC=
WIN_TOP_SRC=
encoding=utf-8
case "$host_os" in
case "$host_os" in
mingw*)
mingw*)
    WIN_TOP_SRC=`cd $srcdir; pwd -W`
    WIN_TOP_SRC=`cd $srcdir; pwd -W`
    encoding=mbcs
    ;;
    ;;
esac
esac
AC_SUBST(WIN_TOP_SRC)
AC_SUBST(WIN_TOP_SRC)
@@ -74,6 +76,7 @@ echo creating $CONFIG_STATUS


cat > $CONFIG_STATUS <<EOF
cat > $CONFIG_STATUS <<EOF
#!${PYTHON}
#!${PYTHON}
# coding=$encoding


import os, sys
import os, sys
dnl topsrcdir is the top source directory in native form, as opposed to a
dnl topsrcdir is the top source directory in native form, as opposed to a
+3 −0
Original line number Original line Diff line number Diff line
@@ -45,9 +45,11 @@ dnl Replace AC_OUTPUT to create and call a python config.status
define([AC_OUTPUT],
define([AC_OUTPUT],
[dnl Top source directory in Windows format (as opposed to msys format).
[dnl Top source directory in Windows format (as opposed to msys format).
WIN_TOP_SRC=
WIN_TOP_SRC=
encoding=utf-8
case "$host_os" in
case "$host_os" in
mingw*)
mingw*)
    WIN_TOP_SRC=`cd $srcdir; pwd -W`
    WIN_TOP_SRC=`cd $srcdir; pwd -W`
    encoding=mbcs
    ;;
    ;;
esac
esac
AC_SUBST(WIN_TOP_SRC)
AC_SUBST(WIN_TOP_SRC)
@@ -74,6 +76,7 @@ echo creating $CONFIG_STATUS


cat > $CONFIG_STATUS <<EOF
cat > $CONFIG_STATUS <<EOF
#!${PYTHON}
#!${PYTHON}
# coding=$encoding


import os, sys
import os, sys
dnl topsrcdir is the top source directory in native form, as opposed to a
dnl topsrcdir is the top source directory in native form, as opposed to a