diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-01 01:00:14 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-01 01:00:14 +0200 |
commit | 452ff385766f7f82e4ff92f319dd3a284795fd2e (patch) | |
tree | 35f3bfd02c4d16d05cda2126aaf82dd945690686 /crawl-ref/source/package.cc | |
parent | 778a975c1cf474d6c585d2177956daff30cffc24 (diff) | |
parent | 5485922b1f7b6c4e369d0b885ccfbff0e6e0d850 (diff) | |
download | crawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.tar.gz crawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.zip |
Merge branch 'unicode'.
There are some issues left, like incorrect wrapping in some cases, but
we can fix them later.
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r-- | crawl-ref/source/package.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc index 7c3c50b608..70aadaf14c 100644 --- a/crawl-ref/source/package.cc +++ b/crawl-ref/source/package.cc @@ -94,7 +94,7 @@ package::package(const char* file, bool writeable, bool empty) if (empty) { - fd = open(file, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0666); + fd = open_u(file, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0666); if (fd == -1) sysfail("can't create save file (%s)", file); @@ -109,7 +109,7 @@ package::package(const char* file, bool writeable, bool empty) } else { - fd = open(file, (writeable? O_RDWR : O_RDONLY) | O_BINARY, 0666); + fd = open_u(file, (writeable? O_RDWR : O_RDONLY) | O_BINARY, 0666); if (fd == -1) sysfail("can't open save file (%s)", file); @@ -563,7 +563,7 @@ void package::unlink() abort(); close(fd); fd = -1; - ::unlink(filename.c_str()); + ::unlink_u(filename.c_str()); } |