Richard Frith-Macdonald
9460d6a469
Normalize repeated combining characters to a single one
2022-04-07 14:35:05 +01:00
Gregory John Casamento
71e07e1a82
Add component:fromDate:
2022-04-04 23:57:10 -04:00
Gregory John Casamento
cb87724a21
Add 10.9 methods for getEra:..., getHour:... etc
2022-04-04 19:26:22 -04:00
Gregory John Casamento
95a24fb651
Add new methods for NSIndexPath. Add row, section, item and new init methods
2022-03-07 07:35:12 -05:00
Richard Frith-Macdonald
ae72ee4593
Fix for #243
2022-03-07 10:13:44 +00:00
Gregory John Casamento
77e6315e2e
Correct issues as discussed in PR by Fred and Richard.
2022-03-06 20:59:27 -05:00
Gregory John Casamento
f42def6ea5
Add necessary methods to NSIndexPath to support NSCollectionView with layouts. Needed item,section information in NSIndexPath object
2022-03-03 02:26:33 -05:00
Richard Frith-Macdonald
ea1575b63c
fix bug in testing whether an NSDistantObject responds to selectors.
2022-02-25 13:00:55 +00:00
Gregory John Casamento
0fd132fe9f
Minor change: Update DocMakefile with all headers.
2022-02-21 14:47:08 -05:00
Frederik Seiffert
b6740f0f6c
Fix some checks when using ICU DLL from Windows 10
2022-02-18 19:06:54 +01:00
Richard Frith-Macdonald
0b1a2d4d66
Tidy positioning of semicolon to be inside IF_NO_ARC() macros so it won't appear in the source when compiled with ARC
2022-02-17 10:21:36 +00:00
Richard Frith-Macdonald
c76ebf2962
Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
...
and deprecate it. Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Richard Frith-Macdonald
6837924e60
Provde more informative debug output when TLS handshake fails
2022-02-17 09:05:49 +00:00
Richard Frith-Macdonald
3bc05ad580
Patch by Larry Campvell for git #237
2022-02-12 13:06:23 +00:00
Richard Frith-Macdonald
a89dc604dd
Fix minor debug logging error
2022-02-11 17:39:47 +00:00
Richard Frith-Macdonald
e9ed77fb68
Fixups for memory amangement and thread safety issues
2022-01-31 16:57:10 +00:00
Richard Frith-Macdonald
f1b3144209
Rewrite last change to be a little more efficient
2022-01-31 12:18:24 +00:00
Richard Frith-Macdonald
f3344628e5
fix for arrya constant
2022-01-30 17:24:32 +00:00
Sergei Golovin
cce60ccc51
* use handle from the cache only if the caller asked
2022-01-30 06:54:56 +04:00
Frederik Seiffert
6657796e15
Use GSNativeChar where applicable
2022-01-26 10:33:33 +01:00
Frederik Seiffert
1aab02b622
Fix NSTemporaryDirectory() returning path with backslashes on Windows
2022-01-26 10:33:33 +01:00
Frederik Seiffert
542d870302
Fix time zone lookup on Windows MSVC by converting Windows timezone name to IANA identifier
2022-01-26 10:33:33 +01:00
Richard Frith-Macdonald
bed2935a7e
change to avoid compiler warning
2022-01-04 12:57:55 +00:00
Richard Frith-Macdonald
cc38a942f2
Restore Canonical names of gnustep extension encodings
2022-01-04 12:46:56 +00:00
Richard Frith-Macdonald
81ad2f403b
Reinstate removed string encodings.
2022-01-04 10:12:58 +00:00
Fred Kiefer
e6fc2740a2
Merge pull request #228 from levinli303/simplified-chinese
...
Add support for Simplified Chinese
2021-12-31 11:19:30 +01:00
Fred Kiefer
d7dc4d5323
Merge pull request #227 from levinli303/master
...
Complete string encoding localization
2021-12-31 11:18:10 +01:00
Levin Li
e9a21ffd2b
Fix test failure by adding memset
2021-12-31 15:18:04 +08:00
Levin Li
c4730de6bd
Add Simplified Chinese resources
2021-12-30 21:26:53 +08:00
Levin Li
f64f13c2a7
Implement NSGB_18030_2000StringEncoding, NSGB_2312_80StringEncoding, NSGBK_95StringEncoding
2021-12-30 21:06:28 +08:00
Frederik Seiffert
b4ae7f7486
Fix handling of concurrent NSOperations
2021-12-27 21:52:34 +01:00
Fred Kiefer
e797128a03
Merge pull request #226 from levinli303/master
...
Support more DOS/Windows string encodings
2021-12-26 13:08:56 +01:00
Frederik Seiffert
7a5c2a6550
Default to UTF-8 when reading localized string files without BOM.
2021-12-26 11:43:43 +01:00
Frederik Seiffert
4c1b2ef7d6
Fix Unicode checks for Windows using icu.h
2021-12-26 11:43:43 +01:00
Levin Li
fe2f41c7f1
Use encoding number values from Apple
2021-12-26 14:22:04 +08:00
Levin Li
ca6145efdd
Support more DOS/Windows encodings
2021-12-25 16:36:18 +08:00
rfm
5f259c1658
Merge pull request #222 from iamleeg/nsdebugenabled
...
Add the NSDebugEnabled boolean
2021-12-21 08:55:51 +00:00
rfm
4db3f5c881
Merge pull request #220 from levinli303/patch-1
...
Do not call handler blocks if they are nil
2021-12-21 08:39:38 +00:00
Richard Frith-Macdonald
40de7fa39a
Try to improve tls disconnect behavior where there are networking issues
2021-12-07 19:28:23 +00:00
Steven R. Baker
7525d942b7
Add the NSDebugEnabled boolean
2021-11-30 21:14:29 +00:00
Richard Frith-Macdonald
0950bed43b
Tweak whitespace for code consistency
2021-11-29 14:01:41 +00:00
Richard Frith-Macdonald
85711ee5f8
coding standard tweaks
2021-11-27 10:59:15 +00:00
Levin Li
5b151c5fa0
Do not call handler blocks if they are nil
2021-11-23 18:34:34 +08:00
Frederik Seiffert
0af2c6de72
Add required cast in case nil is not defined as id
2021-11-13 22:16:46 +01:00
Richard Frith-Macdonald
b55ee6b0c5
Clarify that run loop watchers are NOT retained, and are responsible for removing themselves from the run loop when they have finished watching for events.
2021-11-11 10:01:52 +00:00
Mads Marquart
4033ee28a8
Fix NSGetSizeAndAlignment usage
...
The argument order is (*sizep, *alignp), but it was often incorrectly used the other way around.
2021-11-02 10:18:05 +01:00
Mads Marquart
d439847ba6
Fix NSData initWithBytesNoCopy:length:deallocator:
...
The previous implementation simply swizzled `NSData` into `NSDataWithDeallocatorBlock`, and forgot to actually assign `bytes` and `length`.
2021-10-29 09:17:56 +02:00
Frederik Seiffert
47480d781a
Add missing export declarations required by libs-gui on Windows MSVC
2021-10-26 10:28:51 +02:00
Frederik Seiffert
80f05c2278
Fix -[NSFileManager URLForDirectory:...] using incorrect NSURL initializer and simplified implementation
2021-10-20 18:42:21 +02:00
Richard Frith-Macdonald
c307a04a39
Fix minor leaks
2021-09-16 10:25:26 +01:00
Richard Frith-Macdonald
149acc40ae
fix minor potential leaks
2021-09-16 10:20:41 +01:00
Nuntius
b2983dc77a
Workaround for the session retain loop
2021-09-04 13:07:14 +02:00
Nuntius
a5c66e7c5d
Apply requested changes
2021-08-29 17:47:01 +02:00
Nuntius
a0ab740234
Implement URLSession:downloadTask:didFinishDownloadingToURL: delegate
2021-08-28 20:33:19 +02:00
Nuntius
d3e40dfc9d
Begin implementation of NSURLSessionDownloadTask
2021-08-27 21:56:08 +02:00
Richard Frith-Macdonald
6d5084e3e1
Delete commented out code accidentally left in on last commit
2021-08-27 10:52:32 +01:00
Richard Frith-Macdonald
00db92e146
Merge remote-tracking branch 'origin/master' into nstimezone
2021-08-27 09:37:51 +01:00
Richard Frith-Macdonald
0d12a1e77e
Changes to address mostm of Fred's comments
2021-08-27 09:19:38 +01:00
Frederik Seiffert
170701f7e6
Fix building for Windows MSVC with recent toolchain
2021-08-19 11:05:33 +02:00
rfm
1e8ff8e628
Merge branch 'master' into nstimezone
2021-08-18 14:52:24 +01:00
Richard Frith-Macdonald
1fe008304a
Formatting tidyups
2021-08-18 14:03:25 +01:00
Nuntius
ca5e4fc239
Adjust formatting
2021-08-17 15:03:09 +00:00
Nuntius
c3daa41f2d
Fix indentation
2021-08-17 13:57:37 +00:00
Nuntius
866bdd0636
Merge branch 'master' of https://github.com/Fokka-Engineering/libs-base into new-nsurl-methods
2021-08-17 13:00:09 +00:00
Nuntius
9b3caf99fd
Implement 10.11 NSURL initFileURLWithPath: initializers
2021-08-17 10:30:19 +00:00
Richard Frith-Macdonald
96ef94862f
Add debug log for certificat request which is not for x509
2021-08-17 11:10:23 +01:00
Richard Frith-Macdonald
ae8d496f91
Remove spurous line in last change
2021-08-16 14:00:09 +01:00
Richard Frith-Macdonald
19809ac46d
tweak for ms-windows
2021-08-16 12:48:48 +01:00
Richard Frith-Macdonald
78ab878029
more simplifications and removal of unused defines etc
2021-08-16 11:45:42 +01:00
Richard Frith-Macdonald
a0852146c9
Avoid O_CLOEXEC for portability
2021-08-14 12:49:12 +01:00
Richard Frith-Macdonald
b71a5bfc40
Use our own struct tm
2021-08-14 12:43:44 +01:00
Richard Frith-Macdonald
11c50770d3
Use our own struct tm equivalent for portability
2021-08-14 12:42:26 +01:00
Richard Frith-Macdonald
2f2869ff20
Remove some useless defines and declarations
2021-08-14 12:22:03 +01:00
Richard Frith-Macdonald
c43ea6d474
Update for handling more future dates, and further testing.
2021-08-14 11:25:23 +01:00
Frederik Seiffert
f67c99dbcc
win32: initialize Windows Sockets in NSObject only
...
And update to Windows Socket version 2.2. Also clean up the DllMain initialization to handle CRT init errors and call _CRT_INIT also on DLL/thread detach, and remove uneeded .idata section after removing WSAStartup() import.
WSAStartup() should not be called from DllMain according to MS documentation. Fixes #186 .
2021-08-11 19:32:21 +02:00
Frederik Seiffert
b2f2a3a429
win32: fix warnings
2021-08-11 19:32:21 +02:00
Frederik Seiffert
acde7b062a
Fix release method signature to match NSObject
2021-08-11 19:32:21 +02:00
Frederik Seiffert
27c06a9209
Fix various incorrect format string types
2021-08-11 19:32:21 +02:00
Frederik Seiffert
87dc8ab70c
Fix incorrect method signature in win32/NSMessagePort
2021-08-11 19:32:21 +02:00
Frederik Seiffert
5a46f744df
Fix incorrect string format in NSException
2021-08-11 19:32:21 +02:00
Frederik Seiffert
2d45396de0
Fix various incorrect log statements
2021-08-11 19:32:21 +02:00
Richard Frith-Macdonald
5162d888dc
timezone updates for version2 files
2021-08-11 08:43:20 +01:00
Richard Frith-Macdonald
25b25080c3
Fix possible buffer overrun/corruption spotted by Fred.
2021-08-09 08:29:15 +01:00
Frederik Seiffert
35ef9423e0
Annotate callback functions with __stdcall on Windows
...
Fixes crash on exit on Windows x86.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
55da62c1c1
Add missing import declaration on runtime declarations
...
Fixes warnings when building for Windows MSVC.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
40f88bc622
Enable _C_BOOL on non GNU C compilers
2021-08-08 17:27:40 +02:00
Frederik Seiffert
3b8009654c
Improve robustness of finding devroot on Windows
...
Fixes possible infinite loop if developer root is not found.
Also disable devroot() code under MSVC, as there will be no MSYS environment.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
b41953d274
More robust check for Windows ICU
...
Also ensure that we don't include both unicode/*.h and icu.h.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
dc32970502
Add support for using ICU DLL from Windows 10
...
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-
Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Frederik Seiffert
cf2dae1e21
Improve NSThread thread priority error handling
...
Now using sched_get_priority_min/max instead of PTHREAD_MIN/MAX_PRIORITY defines, and prevent error log when min/max priority are equal (e.g. 0), which happens e.g. on Android when thread priorities are not settable.
2021-07-29 14:22:27 +02:00
Frederik Seiffert
abfe4e2a04
Use native threading and locking APIs on Windows
...
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.
Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
3b8bbb00ba
Try to make timezone parsing more robust: always use standard header for posix time zone files.
2021-07-29 10:35:19 +01:00
Richard Frith-Macdonald
0b3f2a9fb0
Fixup for incorrect method implementation used in sloppy parser.
2021-07-26 14:57:41 +01:00
Richard Frith-Macdonald
395fafde6f
Set file version consistently to avoid misunderstanding
2021-07-25 07:50:31 +01:00
Richard Frith-Macdonald
7245156336
Add sup[port for 64bit time transitions
2021-07-22 10:33:49 +01:00
Frederik Seiffert
a377a86094
Fix possible memory corruption in string handling
2021-07-19 12:23:15 +02:00
Frederik Seiffert
813ae35d39
Export GSPathHandling() in GNUstep headers.
...
Fixes linker errors for some tests under Windows MSVC.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
47ed291b80
Fix possible heap corruption when converting to NSNonLossyASCIIStringEncoding.
2021-07-03 08:34:14 +02:00
Richard Frith-Macdonald
a29248bd4d
Differentiate between client/server for DO over TLS
2021-06-24 08:50:28 +01:00
Richard Frith-Macdonald
640198a395
add missing brace
2021-06-21 09:15:11 +01:00