Skip to content

Commit

Permalink
provide NBSP in hexa, to make sure that git and editor don't destroy it
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcohn committed Sep 14, 2020
1 parent 765cb5c commit 8b369c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ private static String getSafParameter(Context context, Uri uri, String openMode)
displayName += extension;
}
// spaces can break argument list parsing, see https://github.com/alexcohn/mobile-ffmpeg/pull/1#issuecomment-688643836
return "saf:" + fd + "/" + displayName.replace(' ', ' ');
return "saf:" + fd + "/" + displayName.replace(' ', (char)0xa0);
}

public static String getSafParameterForRead(Context context, Uri uri) {
Expand Down

0 comments on commit 8b369c7

Please sign in to comment.