mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhopt.pl,2.60,2.61

2005-06-06 08:55:08
Update of mhonarc/MHonArc/lib
Modified Files:
	mhopt.pl 
Log Message:
Fixed called to POSIX::setlocale(): Code had actually tried to
call POSIX::setlocal() [the 'e' is missing], and the missing warn
operator that was recently fixed causes such error to be overlooked.
Now that setlocale() is properly be invoked, this will probably fix
some other, unreported problems.


======================================================================
FILE: mhonarc/MHonArc/lib/mhopt.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/mhopt.pl?rev=2.61>

<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/mhopt.pl.diff?r1=2.60&r2=2.61&diff_format=h>
--- mhopt.pl	6 Jun 2005 15:47:00 -0000	2.60
+++ mhopt.pl	6 Jun 2005 15:55:02 -0000	2.61
@@ -448,12 +448,11 @@
         require POSIX;
         if ($Lang) {
-            POSIX::setlocal(&POSIX::LC_ALL, $Lang);
+            POSIX::setlocale(&POSIX::LC_ALL, $Lang);
         } else {
-            POSIX::setlocal(&POSIX::LC_ALL, '');
+            POSIX::setlocale(&POSIX::LC_ALL, '');
         }
     };
     if ($@ && $Lang) {
-        warn qq/Warning: Setting locale appears to not be supported: /,
-             qq/Check POSIX module installation.\n/;
+        warn qq/Warning: Setting locale appears to not be supported: $(_at_)\n/;
     }
 


---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS