[f-spot] Gallery Export fails when Unicode characters are used in photo/album descriptions



commit 818176977942abd1df92e17d7ca96ece98abb842
Author: Martin Slota <martin slota gmail com>
Date:   Thu Oct 21 13:08:03 2010 +0200

    Gallery Export fails when Unicode characters are used in photo/album descriptions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629800

 .../FSpot.Exporters.Gallery/FormClient.cs          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/FormClient.cs b/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/FormClient.cs
index 35b7ab9..17ddf8c 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/FormClient.cs
+++ b/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/FormClient.cs
@@ -146,7 +146,7 @@ namespace FSpot.Exporters.Gallery {
 		private long MultipartLength (string name, string value)
 		{
 			long length = MultipartHeader (name, value).Length;
-			length += value.Length + 2;
+			length += Encoding.Default.GetBytes (value).Length + 2;
 			return length;
 		}
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]