[Mono-list] Encoding Question

Ian Norton ian.norton-badrul at thales-esecurity.com
Wed Oct 31 08:52:05 UTC 2012


On Wed, Oct 31, 2012 at 08:29:19AM +0000, Ian Norton wrote:
> console debugger? do you mean csharp and gsharp? I really wish there was an
> updated version of mdb :-/
> 
> On Wed, Oct 31, 2012 at 08:25:05AM +0000, Nathan Findley wrote:
> > Ian,
> > 
> > I installed 2.11.4 and it works great! I had no idea that the console 
> > debugger was available. That is great. Helps me feel at home.
> > 
> > Mind if I ask a general question about assemblies? I am trying to build 
> > gnome-do and am seeing the following error:
> > 
> > Compiling Do.Interface.Linux.Classic.dll...
> > ./src/ClassicTheme.cs(25,39): error CS0012: The type 
> > `Do.Platform.Linux.IConfigurable' is defined in an assembly that is not 
> > referenced. Consider adding a reference to assembly `Do.Platform.Linux, 
> > Version=0.11.0.0, Culture=neutral, PublicKeyToken=null'
> > Compilation failed: 1 error(s), 0 warnings
> > make[1]: *** [../build/Do.Interface.Linux.Classic.dll] Error 1
> 
> Looks like you need to build that assembly first. I've never built gnome-do.
> 
> <time passes>
> 
> I just downloaded it, looks like I need gnome-keyring-sharp which isn't in
> pmono, If i install it from debian then I'll get a hugely confused build :(
> 

I just built gnome-keyring-sharp from github, then just did:

./autogen.sh
make

and that built all of gnome-do for me. 

Ian
 
> > So how does one add a reference to an assembly?
> > 
> > Thanks,
> > Nate
> > 
> > On 10/29/2012 11:20 PM, Ian Norton wrote:
> > > On mono 3.0.0 ( amd64 pmono ) the following work fine for me:
> > >
> > > csharp> using System.Text;
> > > csharp> Encoding.GetEncoding(932);
> > > I18N.CJK.CP932
> > > csharp> Encoding.GetEncoding("shift_jis");
> > > I18N.CJK.ENCshift_jis
> > >
> > > The strange thing I see is that according to MSDN "shift_jis" and 932 are
> > > supposed to be the same encoding..
> > >
> > > http://msdn.microsoft.com/en-us/library/86hf4sb8(v=vs.80).aspx
> > >
> > > Ian
> > >
> > > On Mon, Oct 29, 2012 at 02:16:14PM +0000, Ian Norton wrote:
> > >> That is quite an old mono.
> > >>
> > >> Do you have any non-mono things that work with cp932?
> > >>
> > >> Ian
> > >>
> > >> On Mon, Oct 29, 2012 at 02:12:18PM +0000, Nathan Findley wrote:
> > >>> Hi all,
> > >>>
> > >>> I have compiled Mono myself but am having a problem with a codepage not
> > >>> being recognized. What compil options do I need to use and/or libraries
> > >>> am I missing?
> > >>>
> > >>> Code:
> > >>> System.Text.Encoding from_jp = System.Text.Encoding.GetEncoding(932);
> > >>>
> > >>> Error:
> > >>> Unhandled Exception: System.NotSupportedException: CodePage 932 not
> > >>> supported
> > >>> at System.Text.Encoding.GetEncoding (Int32 codepage) [0x00000] in
> > >>> <filename unknown>:0
> > >>>
> > >>> MONO Install:
> > >>> yum install bison gettext glib2 freetype fontconfig libpng libpng-devel
> > >>> libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts
> > >>> java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
> > >>>
> > >>> cd /usr/local/src
> > >>> wget http://download.mono-project.com/sources/mono/mono-2.10.5.tar.gz
> > >>> tar zxvf mono-2.10.5.tar.gz
> > >>> cd mono-2.10.5
> > >>> ./configure --prefix=/opt/mono
> > >>> make && make install
> > >>>
> > >>> System:
> > >>> Fedora 15
> > >>>
> > >>> Mono JIT compiler version 2.10.5 (tarball Mon Sep 5 20:45:01 UTC 2011)
> > >>> Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
> > >>> www.mono-project.com
> > >>> TLS: __thread
> > >>> SIGSEGV: altstack
> > >>> Notifications: epoll
> > >>> Architecture: amd64
> > >>> Disabled: none
> > >>> Misc: debugger softdebug
> > >>> LLVM: supported, not enabled.
> > >>> GC: Included Boehm (with typed GC and Parallel Mark)
> > >>>
> > >>> Regards,
> > >>> Nate
> > >>>
> > >>> -- 
> > >>> ??????????????????????????????/???????????????
> > >>> Zenlok????????????
> > >>>
> > >>> _______________________________________________
> > >>> Mono-list maillist  -  Mono-list at lists.ximian.com
> > >>> http://lists.ximian.com/mailman/listinfo/mono-list
> > >> _______________________________________________
> > >> Mono-list maillist  -  Mono-list at lists.ximian.com
> > >> http://lists.ximian.com/mailman/listinfo/mono-list
> > 
> > 
> > -- 
> > ??????????????????????????????/???????????????
> > Zenlok????????????
> > 


More information about the Mono-list mailing list