[Mono-list] Mono and Local Date Format
   
    Dick Porter
     
    dick@ximian.com
       
    03 Mar 2004 15:36:00 +0000
    
    
  
On Tue, 2004-03-02 at 21:22, Tracy Barlow wrote:
> ldd mono tells me the following
> 
>          libicui18n.so.26 => /usr/lib/libicui18n.so.26 (0x401ca000)
>          libicuuc.so.26 => /usr/lib/libicuuc.so.26 (0x402a4000)
>          libicudata.so.26 => /usr/lib/libicudata.so.26 (0x4034d000)
> libICU is not there, so how doe I link ICU to my Mono runtime
libicuuc is the one you want, so it is there already.  If you built the
mono runtime yourself, the configure script gives a short summary of the
ICU library it found, and the version.
I just tested the output on my Debian machine (no access to Mandrake
here) and it's working for me:
using System;
using System.Globalization;
public class foo {
        public static void Main() {
                Console.WriteLine("Culture is {0} (LCID {1})", CultureInfo.CurrentCulture.DisplayName, CultureInfo.CurrentCulture.LCID);
                Console.WriteLine("ShortDatePattern is {0}", CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern);
        }
}
:; mono ci.exe           
Culture is English (United Kingdom) (LCID 2057)
ShortDatePattern is dd/MM/yyyy
:; LANG=en_AU mono ci.exe
Culture is English (Australia) (LCID 3081)
ShortDatePattern is d/MM/yy
This is with a CVS build from around the time of the 0.30 release.  I
don't know what else to suggest wrt your problem.  Maybe check that LANG
or LC_ALL is set in your environment prior to running mono?
- Dick