[banshee] Working around bno#527414, fixes bgo#590478
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] Working around bno#527414, fixes bgo#590478
- Date: Sun, 2 Aug 2009 12:23:17 +0000 (UTC)
commit 8d42e41701968efcbd40915412d4894de99f36ab
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sun Aug 2 22:22:15 2009 +1000
Working around bno#527414, fixes bgo#590478
src/Libraries/Hyena/Hyena/StringUtil.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/Libraries/Hyena/Hyena/StringUtil.cs b/src/Libraries/Hyena/Hyena/StringUtil.cs
index d48f73d..4d271a9 100644
--- a/src/Libraries/Hyena/Hyena/StringUtil.cs
+++ b/src/Libraries/Hyena/Hyena/StringUtil.cs
@@ -219,8 +219,15 @@ namespace Hyena
// Can ignore A-Z because we've already lowercased the char
previous_was_latin = (c >= 'a' && c <= 'z');
}
-
- return sb.ToString ().Normalize (NormalizationForm.FormKC);
+
+ string result = sb.ToString ();
+ try {
+ result = result.Normalize (NormalizationForm.FormKC);
+ }
+ catch {
+ // FIXME: work-around, see http://bugzilla.gnome.org/show_bug.cgi?id=590478
+ }
+ return result;
}
private static Regex invalid_path_regex = BuildInvalidPathRegex ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]