Overview
Comment: | glibc breaks when trying to use stdio.h and wchar.h. This is stupid, as it's possible you don't ever output a wchar_t and just need wcscmp, but this forces us to always use wprintf when we need a wchar_t somewhere in the file. glibc really is a nightmare. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0889c2fc55b921f3fe36cd9c8e1c04d3 |
User & Date: | js on 2008-11-26 21:35:03 |
Other Links: | manifest | tags |
Context
2008-11-27
| ||
16:14 | Add lower and upper for OFString. check-in: 2cbf759299 user: js tags: trunk | |
2008-11-26
| ||
21:35 |
glibc breaks when trying to use stdio.h and wchar.h. This is stupid, as it's possible you don't ever output a wchar_t and just need wcscmp, but this forces us to always use wprintf when we need a wchar_t somewhere in the file. glibc really is a nightmare. check-in: 0889c2fc55 user: js tags: trunk | |
21:12 | mbstowcs/wcstombs returns the size of bytes exluding \0, thus add 1. check-in: baeaca9124 user: js tags: trunk | |
Changes
Modified tests/OFList/OFList.m from [cbcfa7ab84] to [e9fc459af1].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - - - + + + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ |
︙ | |||
35 36 37 38 39 40 41 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - + - + - + - + - + - + | [list addNew: [OFString newFromWideCString: strings[0]]]; [list addNew: [OFString newFromWideCString: strings[1]]]; [list addNew: [OFString newFromWideCString: strings[2]]]; for (iter = [list first], i = 0; iter != nil; iter = [iter next], i++) if (!wcscmp([(OFString*)[iter data] wideCString], strings[i])) |
Modified tests/OFXMLFactory/OFXMLFactory.m from [29fddc8f27] to [20703f949d].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | - + + + - + - + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ |
︙ | |||
220 221 222 223 224 225 226 | 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | - + | int main() { test_escape(); test_create_stanza(); test_concat(); |