[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Release-critical Bugreport for March 18, 2000



MoiN

On Sat, Mar 18, 2000 at 09:46:25AM -0600, BugScan reporter wrote:
> Package: gnofin (debian/main)
> Maintainer: Torsten Landschoff <torsten@debian.org>
>   60614  LANG=de_DE gnofin does weird things
[...]
> Package: gnucash (debian/main)
> Maintainer: Tyson Dowd <trd@cs.mu.oz.au>
[...]
>   60615  gnucash: LANG=de_DE does weird things

The bug seems to be fixed in woody. Perhaps that version should
go into frozen, too? Changelog says it includes a lot of
bugfixes.

If these bugs can't be solved for potato I suggest the following
wrapper (taken from /usr/bin/X11/netscape):

-->8-- cut here -->8--
#!/bin/sh
#
# Fix "locale" problems.
#
# If the locale uses a decimal separator other than a point
printf 
# will complain and it will not return 1.0
#

pnt=$(printf "%1.1f" 1 2>/dev/null)

if [ "$pnt" != "1.0" ]; then
        #   echo "1.0 -> $pnt"
        # Perhaps we have a "dangerous" value for LANG or LC_NUMERIC. Let's
        # try a "safe" value for LC_NUMERIC.
        LC_NUMERIC=C
        export LC_NUMERIC
        pnt=$(printf "%1.1f" 1 2> /dev/null)
fi

if [ "$pnt" != "1.0" ]; then
# No, it is LC_ALL which is bad. Set LC_*=$LC_ALL for every category
# (as expected) except LC_NUMERIC, and then unset LC_ALL.
        LC_COLLATE=$LC_ALL
        LC_CTYPE=$LC_ALL
        LC_MESSAGES=$LC_ALL
        LC_MONETARY=$LC_ALL
        LC_TIME=$LC_ALL
        unset LC_ALL
        export LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_CTIME
fi

exec /usr/bin/gnofin
--8<-- cut here --8<--

    Ingo
--
Windows, me?


Reply to: