Richard Frith-Macdonald
1ddcb25b7e
Avcoid coverity warning
2020-08-23 16:01:21 +01:00
Richard Frith-Macdonald
32f306b615
avoid coverity warning
2020-08-23 15:48:47 +01:00
fredkiefer
93d4576871
* Source/NSDateComponentsFormatter.m: Fix use of wrong operator.
2020-08-30 22:27:08 +02:00
Richard Frith-Macdonald
48c270b9ca
Improve -contentFile to check the content-type header before content-disposition
2020-08-08 19:30:18 +01:00
Richard Frith-Macdonald
1f2b03e84d
Fix calls to utimensat() which were passing the wrong value for the first argument, which needs to be the file descriptor of the directory containing the file, or AT_FDCWD to use the current directory.
2020-07-31 16:00:36 +01:00
Richard Frith-Macdonald
62c68d3cab
Set dates on copy ... it turns our OSX does not behave like Posix
2020-07-31 15:29:02 +01:00
Riccardo Mottola
24261fdc45
explicitely allow disabling unwind, test for header and function too
2020-07-28 01:02:55 +02:00
Frederik Seiffert
b9a9481c56
Update NSURLRequest header to use "instancetype".
2020-07-14 09:21:53 +02:00
Richard Frith-Macdonald
291ad8384e
move deallocation of zombie map outside lock protected section so that any exception while deallocating will not cause unbalanced lock/unlock
2020-07-09 09:11:47 +01:00
Richard Frith-Macdonald
684e952b04
When copying objects we should not be attempting to set the creation/modification date of the copy to that of the original.
2020-07-09 09:10:30 +01:00
Richard Frith-Macdonald
0c302348b0
Add casts to prevent compiler warnings, and comment to explain the new change for android where there is no thread ID available from the operating system.
2020-07-09 09:09:19 +01:00
Frederik Seiffert
94d14ca02a
Don't log current thread if its identical to private thread ID.
2020-07-08 17:02:41 +02:00
Frederik Seiffert
3752016412
Improve NSLog output on Android.
2020-07-08 16:15:57 +02:00
rfm
69c9e77afb
Merge pull request #146 from gnustep/msys-fix
...
Fix MSYS2-32
2020-07-08 13:59:07 +01:00
Richard Frith-Macdonald
47b6defc26
We only need to set the ownership of a newly created file on unix-like systems where the effective user ID may be different from the real user ID.
2020-07-07 07:42:40 +01:00
Frederik Seiffert
a7e87824c0
Fix possible deadlock when becoming multi-threaded.
2020-07-06 22:01:01 +02:00
Richard Frith-Macdonald
8e97401783
Replace temporarty hack with a rewrite of whitespace checking to use our own
...
characterset data (derived from unicode data) on which characters are counted
as whitespace for the purpose of capitalising strings.
counted as white space
2020-06-27 08:33:13 +01:00
Richard Frith-Macdonald
31ea5db30b
When overwriting a file with data, do not attempt to set creation date.
...
When creaqting a new file, try to use the real uid when effective uid is root
2020-06-25 09:19:44 +01:00
Richard Frith-Macdonald
b7882e3194
Simple fix to check for whitespace characters using strchr since the old
...
mechanism using characterset bitmap representations was broken by the
change to reduce waste in bintmaps (the code assumed the bitmap was
bigger than it really is).
2020-06-24 11:35:29 +01:00
Richard Frith-Macdonald
8acf2a5304
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2020-06-23 07:05:34 +01:00
Richard Frith-Macdonald
e8a62e0e5e
Check for nil arugment to -isEqualToString:
2020-06-23 07:03:55 +01:00
Riccardo Mottola
e1c32adb77
define WSAAPI to empty if it is undefined, just for safety
2020-06-19 09:03:06 +02:00
Riccardo Mottola
919f8c16d0
specify WSAAPI as return type too, needed for MSYS2-32bit
2020-06-15 23:52:35 +02:00
Gregory John Casamento
fff7573b88
Correct changelog
2020-06-14 20:21:12 -04:00
Richard Frith-Macdonald
057445b4e7
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2020-06-11 16:30:49 +01:00
Gregory John Casamento
c8ab7a3bc2
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-11 09:38:20 -04:00
Frederik Seiffert
d6d2fa9a74
Fix recursive creation of value transformers.
2020-06-11 14:22:04 +02:00
Frederik Seiffert
c6f24e6634
Fix Android assets support for bundle directories
2020-06-10 20:31:03 +02:00
Riccardo Mottola
b879e0835b
explicitely test for ws2tcpip.h header, fix library detection on windows for inet_ntop with corrent library, guard includes and definitions with configure results, cleanup header inclusion
2020-06-09 13:44:42 +02:00
Richard Frith-Macdonald
41ab84eaba
So not attempt to alter creation date of newly created file.
2020-06-09 11:43:56 +01:00
Gregory John Casamento
3b315b9d21
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-08 04:12:45 -04:00
rfm
daadfe7a6d
Merge branch 'master' into android-assets-directory-improvements
2020-06-06 12:13:43 +01:00
rfm
e2d223b564
Merge pull request #142 from gnustep/msys-fix
...
Msys fix
2020-06-06 11:11:06 +01:00
Richard Frith-Macdonald
41badcb417
Fix leak of new operation in -blockOperationWithBlock: method. Make -addExecutionBlock: ensure it works with an on-heap copy of its argument. Tidy code to have NSBlockOperation methods with normal formatting and alphabetical order. Tidy code to use standard macros for memory management.
2020-06-05 17:43:46 +01:00
Riccardo Mottola
5bbe378a79
remove unneeded window headers include, since common.h will include GSConfig.h
2020-06-05 13:46:34 +02:00
Frederik Seiffert
71f6cde4bd
Fix replacing an existing value in a weak objects map table.
2020-06-05 11:55:33 +02:00
Gregory John Casamento
ea162442ce
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-04 18:40:14 -04:00
Richard Frith-Macdonald
a1d5d020b3
Change -objectForKey: method to get the contents into a buffer (on the stack) and iterate through them rather than creating an autoreleased enumerator. This avoids allocation/autorelease/deallocation of the enumerator (as well as etain/release of the search list by the enumerator) which should give better performance generally and avoid excess object creation when lots of defaults lookups are done in an autorelease pool.
2020-06-03 14:48:22 +01:00
Gregory John Casamento
597f0a917e
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-05-31 17:41:23 -04:00
rfm
bf4c0719aa
Merge pull request #136 from gnustep/windows-ci
...
Set up CI for Windows using MinGW and GCC
Looks good, merging.
2020-05-29 16:33:42 +01:00
Richard Frith-Macdonald
6fd8dd7a20
Wrap code for posting of notifications (for becoming multithreaded and for a thread being about to exit) in an autorelease loop. This should avoid possible leakage of objects and warnings during the notification process.
2020-05-29 16:25:52 +01:00
Frederik Seiffert
a0fe037077
Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64.
2020-05-29 10:40:03 +02:00
Gregory John Casamento
96f88dcc95
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-05-29 00:53:39 -04:00
Richard Frith-Macdonald
fab98ede73
On thread exit we must post the notification that it *will* exit before
...
setting the instance variable to say that it has finished. This is tested
as the order OSX does it, and makes sense to ensure that, when -isFinished
returns YES we can be sure the thread will not do anything else.
2020-05-26 16:30:15 +01:00
rfm
a636994a33
Merge pull request #138 from triplef/fix-nsuserdefaults-setbool
...
Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:.
2020-05-26 12:38:41 +01:00
Richard Frith-Macdonald
861f8de610
Remove excess whitespace and copy trick to NSPortCoder
2020-05-26 09:18:49 +01:00
Gregory John Casamento
3a0420bddf
Merge branch 'master' into NSSecureCoding_branch2
2020-05-26 01:52:58 -04:00
Riccardo Mottola
e7f89135d3
rewrite lower negative bounds to avoid integer constants underflow of literals
2020-05-25 23:50:36 +02:00
Frederik Seiffert
d2938c7729
Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:.
2020-05-25 17:34:34 +02:00
Frederik Seiffert
db19fc3308
Android assets improvements to support directories
...
- Extend NSBundle resources support to handle directories in Android assets.
- Fix NSFileManager -isReadableFileAtPath: to also support directories in Android assets.
2020-05-20 13:39:47 +02:00