146cbc357b
Copy from M17N/groff based on submit request 20642 from user tiwai OBS-URL: https://build.opensuse.org/request/show/20642 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/groff?expand=0&rev=19
31 lines
731 B
Diff
31 lines
731 B
Diff
---
|
|
src/roff/nroff/nroff.sh | 14 +++++++++++++-
|
|
1 file changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
--- a/src/roff/nroff/nroff.sh
|
|
+++ b/src/roff/nroff/nroff.sh
|
|
@@ -203,10 +203,22 @@
|
|
# mv $TMPDIR/input.new $TMPDIR/input
|
|
#fi
|
|
|
|
+getlang () {
|
|
+ if [ -n "$LANGUAGE" ]; then
|
|
+ echo $LANGUAGE
|
|
+ elif [ -n "$LC_ALL" ]; then
|
|
+ echo $LC_ALL
|
|
+ elif [ -n "$LC_MESSAGES" ]; then
|
|
+ echo $LC_MESSAGES
|
|
+ else
|
|
+ echo $LANG
|
|
+ fi
|
|
+}
|
|
+
|
|
ICONV="cat"
|
|
case "`locale charmap 2>/dev/null`" in
|
|
UTF-8)
|
|
- case "${LANGUAGE-${LC_ALL-${LC_MESSAGES-${LANG}}}}" in
|
|
+ case `getlang` in
|
|
ja*)
|
|
# Japanese man page in UTF-8 locale, special case!
|
|
# force the device 'nippon' to run groff in ja_JP.eucJP locale
|