GNOME Bugzilla – Bug 733996
afp backend uses incorrect encoding for volume names
Last modified: 2014-09-27 08:40:02 UTC
For example, the user sees: John’s Public Folder
Created attachment 282105 [details] [review] afp: Use UTF-8 for volume names Use UTF-8 for volume names since volume names are encoded as UTF-8 for protocol versions 3.0 and higher. This prevents seeing volume names like: "John’s Public Folder" Since the volume name comes as a pascal string with UTF-8 encoding, extend the function to read pascal strings with the ability to read pascal strings encoded as UTF-8.
Review of attachment 282105 [details] [review]: It looks good if you tested it, however shouldn't we check the protocol version?
(In reply to comment #2) > Review of attachment 282105 [details] [review]: > > It looks good if you tested it, however shouldn't we check the protocol > version? Yeah, I tested it :-) The AFP backend only supports version 3.0+, see get_server_info() in gvfsafpserver.c.
Comment on attachment 282105 [details] [review] afp: Use UTF-8 for volume names So it's correct :-)
Pushed to master as c6200ea2184b63016fe573155b0480ba88069456. Thanks for the review!