1. 25 Nov, 2014 38 commits
  2. 24 Nov, 2014 2 commits
    • Martin Storsjö's avatar
      lavf: Use wchar functions for filenames on windows for mkdir/rmdir/rename/unlink · 960aff37
      Martin Storsjö authored
      This makes sure that the internal utf8 path names are handled
      properly - the normal file handling functions assume path names
      are in the native codepage, which isn't utf8.
      
      This assumes that the tools outside of lavf don't use the mkdir
      definition. (The tools don't do the same reading of command line
      parameters as wchar either - they probably won't handle all possible
      unicode file parameters properly, but at least work more predictably
      if no utf8/wchar conversion is involved.)
      
      This is moved further down in os_support.h, since windows.h shouldn't
      be included before winsock2.h, while io.h needs to be included before
      the manual defines for lseek functions.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      960aff37
    • Martin Storsjö's avatar
      lavf: Don't try to update files atomically with renames on windows · b9d08c77
      Martin Storsjö authored
      On windows, rename(2) will fail if the target file exists. On
      unix this trick is used to make sure that people reading the file
      either will get the full previous file, or the full new version
      of the file, but no intermediate version.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      b9d08c77