GNOME Bugzilla – Bug 653434
CS1012 when compiling under Mono 2.10
Last modified: 2011-09-29 19:23:02 UTC
Created attachment 190700 [details] [review] Fix CS1012 "Too many characters in character literal" errors by escaping unicode literals Hi there, I see numerous CS2012 errors coming from the generated stetic code when building git HEAD under mono 2.10: ,---- | ./gtk-gui/LongoMatch.Gui.Component.CategoryProperties.cs(63,58): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs(233,58): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs(245,65): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs(287,62): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(123,65): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(151,58): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(328,58): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(418,63): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(438,60): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs(462,65): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.ProjectListWidget.cs(54,60): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Component.TaggerWidget.cs(67,55): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs(67,55): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Dialog.SnapshotsDialog.cs(47,55): error CS1012: Too many characters in character literal | ./gtk-gui/LongoMatch.Gui.Dialog.VideoEditionProperties.cs(202,58): error CS1012: Too many characters in character literal `---- Attached is a patch to escape the unicode used there, which seems to work fine for me. Cheers, Iain
I think this bug is caused by: https://bugzilla.novell.com/show_bug.cgi?id=676476 Comment 1 shows a workaround to fix it: "Fixed in master. As a workaround you can set correct encoding using /codepage:utf8" Can you handle this in the package or should I include the workaround in longomatch?
Fixed in master commit 39248e0af5d499af2fbf1a2c11d510492421c07d Author: Andoni Morales Alastruey <ylatuya@gmail.com> Date: Thu Sep 29 21:21:37 2011 +0200 Force utf-8 codepage Fixes #653434