ObjFW  History of src/OFStdIOStream_Win32Console.m of 94175115c32662af

History of the file that is called src/OFStdIOStream_Win32Console.m at check-in 94175115c32662af

2019-06-17
02:33
Deleted: Remove underscores from class names (check-in: [17d57e01ff] user: js, branch: trunk, size: 0)
2019-03-24
13:19
[7e7d715431] part of check-in [0f8a72d43c] Derive of_std{in,out,err} from std{in,out,err}

Previously, this just assumed the existance of file descriptors 0, 1 and
2 - however, in GUI applications on Windows, these were missing when not
started from a console. (check-in: [0f8a72d43c] user: js, branch: trunk, size: 8746) [annotate] [blame] [check-ins using] [diff]

2019-03-09
10:48
[4abac542f9] part of check-in [c1e949a8c6] Several minor fixes (check-in: [c1e949a8c6] user: js, branch: trunk, size: 8698) [annotate] [blame] [check-ins using] [diff]
2019-03-08
00:35
[801fb56bc9] part of check-in [bceb7ed4c9] Use dot syntax (check-in: [bceb7ed4c9] user: js, branch: trunk, size: 8692) [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
[8796f50f42] part of check-in [0509d7a844] Update copyright (check-in: [0509d7a844] user: js, branch: trunk, size: 8700) [annotate] [blame] [check-ins using] [diff]
2018-02-25
04:31
[24ecc550f0] part of check-in [505137f25f] Reintroduce of_char{16,32}_t

There is no reliable way to check if C++ already defined those, as Clang
now defines char{16,32}_t even when it is not in C++ 11 mode. So we
cannot check if we are not in C++ 11 and then define them and otherwise
rely on the C++ 11 types. (check-in: [505137f25f] user: js, branch: trunk, size: 8694) [annotate] [blame] [check-ins using] [diff]

2018-01-03
19:49
[07af5c7a6d] part of check-in [7e5c81e186] Update copyright notice (check-in: [7e5c81e186] user: js, branch: trunk, size: 8676) [annotate] [blame] [check-ins using] [diff]
2017-10-05
21:19
[ddf6ede371] part of check-in [46ebdddf8f] OFStdIOStream_Win32Console: Fix wrong return (check-in: [46ebdddf8f] user: js, branch: trunk, size: 8653) [annotate] [blame] [check-ins using] [diff]
2017-09-24
12:24
[9bf00d9f6c] part of check-in [481225349f] OFStream: Add support for async writes (check-in: [481225349f] user: js, branch: trunk, size: 8651) [annotate] [blame] [check-ins using] [diff]
2017-07-22
20:50
[2cf46b37b4] part of check-in [c8f7b90082] Split OFDataArray into OFData and OFMutableData (check-in: [c8f7b90082] user: js, branch: trunk, size: 8462) [annotate] [blame] [check-ins using] [diff]
2017-06-12
22:29
[451d779be8] part of check-in [2ae01218ef] OFWriteFailedException: Add -[bytesWritten]

This allows retrieving the number of bytes already written before the
write failed, allowing to retry without writing data that has already
been written. (check-in: [2ae01218ef] user: js, branch: trunk, size: 8471) [annotate] [blame] [check-ins using] [diff]

2017-06-05
17:36
[e75a0d88c9] part of check-in [4f36894ce7] Clean up exceptions a little

This removes several initializers that omitted the errNo. Removing those
forces to think about whether there is a meaningful errNo to set instead
of just omitting it. (check-in: [4f36894ce7] user: js, branch: trunk, size: 8084) [annotate] [blame] [check-ins using] [diff]

2017-05-21
21:28
[b94d48eb9c] part of check-in [6b77a5dd8b] Prefix private methods with of_ instead of OF_

This matches Apple's style. (check-in: [6b77a5dd8b] user: js, branch: trunk, size: 8011) [annotate] [blame] [check-ins using] [diff]

2017-05-07
21:25
[877aa024e4] part of check-in [37d2a81754] Use char{16,32}_t instead of of_char{16,32}_t (check-in: [37d2a81754] user: js, branch: trunk, size: 8011) [annotate] [blame] [check-ins using] [diff]
20:10
[7f3fc13f71] part of check-in [4af49a13c3] Small code style change

Casts are now written like types in variable declarations. (check-in: [4af49a13c3] user: js, branch: trunk, size: 8029) [annotate] [blame] [check-ins using] [diff]

2017-02-04
17:45
[7220727656] part of check-in [5a31a537a1] Fix typos in comments and strings found by aspell (check-in: [5a31a537a1] user: js, branch: trunk, size: 8027) [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
[b6e40ac9ff] part of check-in [44f45c2e35] Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. (check-in: [44f45c2e35] user: js, branch: trunk, size: 8026) [annotate] [blame] [check-ins using] [diff]

2016-05-28
14:22
[64a809a602] part of check-in [9ad332a3ea] OFStdIOStream_Win32Console: Add explicit casts (check-in: [9ad332a3ea] user: js, branch: trunk, size: 8020) [annotate] [blame] [check-ins using] [diff]
2016-03-13
20:29
[856da3e285] part of check-in [976162aa79] OFStdIOStream_Win32Console: Small read fix (check-in: [976162aa79] user: js, branch: trunk, size: 7853) [annotate] [blame] [check-ins using] [diff]
20:04
[c7b07d3dc1] part of check-in [9d70e660ea] OFStdIOStream_Win32Console: Use U+FFFD, not U+FFFE

U+FFFD is for unrepresentable characters, not U+FFFE. (check-in: [9d70e660ea] user: js, branch: trunk, size: 7841) [annotate] [blame] [check-ins using] [diff]

19:33
[c806288ec6] part of check-in [3a0fdb6701] OFStdIOStream_Win32Console: Improve writing

When writing an incomplete surrogate, it now writes everything up to
that incomplete surrogate, remembers the incomplete surrogate and writes
it as soon as the surrogate is completed by a following write. (check-in: [3a0fdb6701] user: js, branch: trunk, size: 7841) [annotate] [blame] [check-ins using] [diff]

11:19
[f55d77f8b8] part of check-in [5e2ef97c35] Change of_string_utf8_decode() API

It now returns <= 0 on error, with negative values being the number of
bytes it would have needed * -1.

This can be used to detect cut off and how many bytes are missing. (check-in: [5e2ef97c35] user: js, branch: trunk, size: 6293) [annotate] [blame] [check-ins using] [diff]

10:24
[88dea4ced5] part of check-in [566d4df603] OFStdIOStream_Win32Console: Improve reading

On reads, surrogates that have been cut off are now properly handled. (check-in: [566d4df603] user: js, branch: trunk, size: 6260) [annotate] [blame] [check-ins using] [diff]

2016-03-12
20:28
Added: [7d8639b924] part of check-in [3e1b6bccbc] Properly handle UTF-8 in Win32 console

The previous way was to set the codepage to UTF-8, however, this does
not work properly on some versions of Windows.

Instead, this catches reads / writes on of_std* on the lowlevel,
interprets it as UTF-8, converts it to / from UTF-16 and then uses
ReadConsoleW() / WriteConsoleW().

Surrogates being cut in the middle is not properly handled yet, this
will be implemented in a follow up commit. (check-in: [3e1b6bccbc] user: js, branch: trunk, size: 5464) [annotate] [blame] [check-ins using]