mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix a few windows bugs with unicode strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21791 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a6fed1f0c1
commit
5e6e40a43f
3 changed files with 32 additions and 2 deletions
|
@ -910,7 +910,13 @@ static NSMapTable *absolutes = 0;
|
|||
abbreviationMap = [[NSMutableDictionary alloc] init];
|
||||
path = _time_zone_path (ABBREV_MAP, nil);
|
||||
#if defined(__WIN32__)
|
||||
file = fopen([path fileSystemRepresentation], "rb");
|
||||
{
|
||||
unichar mode[3];
|
||||
mode[0] = 'r';
|
||||
mode[1] = 'b';
|
||||
mode[2] = '\0';
|
||||
file = wfopen([path fileSystemRepresentation], mode);
|
||||
}
|
||||
#else
|
||||
file = fopen([path fileSystemRepresentation], "r");
|
||||
#endif
|
||||
|
@ -1330,7 +1336,13 @@ static NSMapTable *absolutes = 0;
|
|||
|
||||
fileName = _time_zone_path (REGIONS_FILE, nil);
|
||||
#if defined(__WIN32__)
|
||||
file = fopen([fileName fileSystemRepresentation], "rb");
|
||||
{
|
||||
unichar mode[3];
|
||||
mode[0] = 'r';
|
||||
mode[1] = 'b';
|
||||
mode[2] = '\0';
|
||||
file = wfopen([fileName fileSystemRepresentation], mode);
|
||||
}
|
||||
#else
|
||||
file = fopen([fileName fileSystemRepresentation], "r");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue