mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* configure.ac: Test for objc forwarding by compiling a program.
* config/config.forward.m: New file. (Fixes bug #11188). * Source/GSFormat.m (GSFormat): Assign wchar via var args from an int (Fixes bug #10950). * Testing/string.m: Tests for standardizing path. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20427 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
775cd4d09c
commit
5a08f449a7
6 changed files with 64 additions and 19 deletions
|
@ -22,7 +22,6 @@ int main()
|
|||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
id s = @"This is a test string";
|
||||
id s2, s3;
|
||||
int a;
|
||||
unichar u0[5] = { 0xFE66, 'a', 'b', 'c', 'd'};
|
||||
unichar u1[6] = { '1', '2', '.', '3', '4', 0xFE66};
|
||||
unichar u2[7] = { 'a', 'b', 0xFE66, 'a', 'b', 'c', 'd'};
|
||||
|
@ -128,6 +127,17 @@ int main()
|
|||
printf("Encoding %x\n", *encs++);
|
||||
}
|
||||
|
||||
GSPrintf(stdout, @"\nStandardize Paths\n");
|
||||
s2 = @"../";
|
||||
GSPrintf(stdout, @"%@ becomes %@\n",
|
||||
s2, [s2 stringByStandardizingPath]);
|
||||
s2 = @"/usr/bin/../lib";
|
||||
GSPrintf(stdout, @"%@ becomes %@\n",
|
||||
s2, [s2 stringByStandardizingPath]);
|
||||
s2 = @"~/Public/../GNUstep";
|
||||
GSPrintf(stdout, @"%@ becomes %@\n",
|
||||
s2, [s2 stringByStandardizingPath]);
|
||||
|
||||
[arp release];
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue