eventlog: fix broken history for file names with unicode characters. #1023
This commit is contained in:
parent
aabf323860
commit
9f31fb3161
|
@ -279,6 +279,9 @@ namespace SparkleShare {
|
||||||
string folder = url.Replace ("history://", "").Split ("/".ToCharArray ()) [0];
|
string folder = url.Replace ("history://", "").Split ("/".ToCharArray ()) [0];
|
||||||
string file_path = url.Replace ("history://" + folder + "/", "");
|
string file_path = url.Replace ("history://" + folder + "/", "");
|
||||||
|
|
||||||
|
byte [] file_path_bytes = Encoding.Default.GetBytes (file_path);
|
||||||
|
file_path = Encoding.UTF8.GetString (file_path_bytes);
|
||||||
|
|
||||||
foreach (SparkleRepoBase repo in Program.Controller.Repositories) {
|
foreach (SparkleRepoBase repo in Program.Controller.Repositories) {
|
||||||
if (!repo.Name.Equals (folder))
|
if (!repo.Name.Equals (folder))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue