[f-spot/stable-0.8] Gallery Export fails when Unicode characters are used in photo/album descriptions
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/stable-0.8] Gallery Export fails when Unicode characters are used in photo/album descriptions
- Date: Thu, 21 Oct 2010 11:49:52 +0000 (UTC)
commit 2805843590633b61ff65e74730bc49a1680e19b2
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 6820ca6..c8f0631 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
@@ -115,7 +115,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]