After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653434 - CS1012 when compiling under Mono 2.10
CS1012 when compiling under Mono 2.10
Status: RESOLVED FIXED
Product: longomatch
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: 0.16
Assigned To: Andoni Morales
longomatch-maint
Depends on:
Blocks:
 
 
Reported: 2011-06-26 16:46 UTC by Iain Lane
Modified: 2011-09-29 19:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix CS1012 "Too many characters in character literal" errors by escaping unicode literals (17.76 KB, patch)
2011-06-26 16:46 UTC, Iain Lane
none Details | Review

Description Iain Lane 2011-06-26 16:46:13 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
Comment 1 Andoni Morales 2011-07-10 14:54:01 UTC
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?
Comment 2 Andoni Morales 2011-09-29 19:23:02 UTC
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