* Tools/cvtenc.m (main): Write using local/set encoding when

EscapeIn=YES.
* Tools/gdomap.c: Remove getopt function for MinGW
(patch from Leigh Smith <leigh@leighsmith.com>).
* Documentation/coding-standards.texi: Add section about object
persistance.
* configure.ac: Make it possible to override --enable-pass-arguments
when on cygwin.
* configure: Regenerate using 2.57
* Resources/Languages/TraditionalChinese: Quote escaped strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze_1_8_0@17699 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-09-22 03:04:54 +00:00
parent 488b8e3457
commit 9983258a29
7 changed files with 66 additions and 93 deletions

View file

@ -1,3 +1,22 @@
2003-09-21 Adam Fedor <fedor@gnu.org>
* Tools/cvtenc.m (main): Write using local/set encoding when
EscapeIn=YES.
* Tools/gdomap.c: Remove getopt function for MinGW
(patch from Leigh Smith <leigh@leighsmith.com>).
* Documentation/coding-standards.texi: Add section about object
persistance.
* configure.ac: Make it possible to override --enable-pass-arguments
when on cygwin.
* configure: Regenerate using 2.57
2003-09-20 yjchen <yjchenx@hotmail.com>
* Resources/Languages/TraditionalChinese: Quote escaped strings.
2003-09-15 Adam Fedor <fedor@gnu.org>
* Version 1.7.4

View file

@ -61,6 +61,7 @@ into another language, under the above conditions for modified versions.
* Memory Management::
* Error Handling::
* Variable Declaration::
* Object Persistance::
* Contributing::
@end menu
@ -333,7 +334,7 @@ similar mechanism exists in libFoundation with the CLEANUP and FINALLY
blocks.
@c ******************************************************************
@node Variable Declaration, Contributing, Error Handling, Top
@node Variable Declaration, Object Persistance, Error Handling, Top
@section Variable Declaration
All variables should be decalred at the beginning of a block. The new
@ -346,7 +347,21 @@ GNUstep libraries which stopped them compiling with one of the
commonly used compilers.
@node Contributing, , Variable Declaration, Top
@c ******************************************************************
@node Object Persistance, Contributing, Variable Declaration, Top
@section Object Persistance
The standard method of saving and restoring object information in GNUstep
is through the use of the -encodeWithCoder: and -initWithCoder: methods.
Any object which requires persistance implements these methods. They are
used, for instance by Gorm, to save GUI interface elements. It is important
that all changes to these methods be backward compatible with previously
stored archives (for instance, those created by Gorm). The easiest way to do
this is to use class version numbers to indicate which archive configuration
should be read.
@node Contributing, , Object Persistance, Top
@section Contributing
Contributing code is not difficult. Here are

View file

@ -13,25 +13,25 @@
NSDecimalSeparator = ".";
NSThousandsSeparator = ",";
NSAMPMDesignation = (\u4e0a\u5348, \u4e0b\u5348);
NSAMPMDesignation = ("\u4e0a\u5348", "\u4e0b\u5348");
NSDateFormatString = "%A, %B %d, %Y";
NSDateTimeOrdering = DMYH;
NSEarlierTimeDesignations = (\u4e4b\u524d, \u904e\u53bb);
NSHourNameDesignations = ((0, \u5348\u591c), (12, \u4e2d\u5348), (10, \u4e0a\u5348), (14, \u4e0b\u5348), (19, \u665a\u4e0a));
NSLaterTimeDesignations = (\u4e4b\u5f8c, \u4ee5\u5f8c);
NSMonthNameArray = (\u4e00\u6708, \u4e8c\u6708, \u4e09\u6708, \u56db\u6708, \u4e94\u6708, \u516d\u6708, \u4e03\u6708, \u516b\u6708, \u4e5d\u6708, \u5341\u6708, \u5341\u4e00\u6708, \u5341\u4e8c\u6708);
NSNextDayDesignations = (\u660e\u5929);
NSNextNextDayDesignations = (\u5f8c\u5929);
NSPriorDayDesignations = (\u6628\u5929);
NSEarlierTimeDesignations = ("\u4e4b\u524d", "\u904e\u53bb");
NSHourNameDesignations = ((0, "\u5348\u591c"), (12, "\u4e2d\u5348"), (10, "\u4e0a\u5348"), (14, "\u4e0b\u5348"), (19, "\u665a\u4e0a"));
NSLaterTimeDesignations = ("\u4e4b\u5f8c", "\u4ee5\u5f8c");
NSMonthNameArray = ("\u4e00\u6708", "\u4e8c\u6708", "\u4e09\u6708", "\u56db\u6708", "\u4e94\u6708", "\u516d\u6708", "\u4e03\u6708", "\u516b\u6708", "\u4e5d\u6708", "\u5341\u6708", "\u5341\u4e00\u6708", "\u5341\u4e8c\u6708");
NSNextDayDesignations = ("\u660e\u5929");
NSNextNextDayDesignations = ("\u5f8c\u5929");
NSPriorDayDesignations = ("\u6628\u5929");
NSShortDateFormatString = "%m/%d/%Y";
NSShortMonthNameArray = (\u4e00\u6708, \u4e8c\u6708, \u4e09\u6708, \u56db\u6708, \u4e94\u6708, \u516d\u6708, \u4e03\u6708, \u516b\u6708, \u4e5d\u6708, \u5341\u6708, \u5341\u4e00\u6708, \u5341\u4e8c\u6708);
NSShortMonthNameArray = ("\u4e00\u6708", "\u4e8c\u6708", "\u4e09\u6708", "\u56db\u6708", "\u4e94\u6708", "\u516d\u6708", "\u4e03\u6708", "\u516b\u6708", "\u4e5d\u6708", "\u5341\u6708", "\u5341\u4e00\u6708", "\u5341\u4e8c\u6708");
NSShortTimeDateFormatString = "%d %b, %Y %H:%M";
NSShortWeekDayNameArray = (\u9031\u4e00, \u9031\u4e8c, \u9031\u4e09, \u9031\u56db, \u9031\u4e94, \u9031\u516d, \u9031\u65e5);
NSThisDayDesignations = (\u4eca\u5929);
NSShortWeekDayNameArray = ("\u9031\u4e00", "\u9031\u4e8c", "\u9031\u4e09", "\u9031\u56db", "\u9031\u4e94", "\u9031\u516d", "\u9031\u65e5");
NSThisDayDesignations = ("\u4eca\u5929");
NSTimeDateFormatString = "%a %b %d %Y %H:%M:%S %Z";
NSTimeFormatString = "%H:%M:%S";
NSWeekDayNameArray = (\u661f\u671f\u4e00, \u661f\u671f\u4e8c, \u661f\u671f\u4e09, \u661f\u671f\u56db, \u661f\u671f\u4e94, \u661f\u671f\u516d, \u661f\u671f\u65e5);
NSYearMonthWeekDesignations = (\u5e74, \u6708, \u9031);
NSWeekDayNameArray = ("\u661f\u671f\u4e00", "\u661f\u671f\u4e8c", "\u661f\u671f\u4e09", "\u661f\u671f\u56db", "\u661f\u671f\u4e94", "\u661f\u671f\u516d", "\u661f\u671f\u65e5");
NSYearMonthWeekDesignations = ("\u5e74", "\u6708", "\u9031");
}

View file

@ -229,6 +229,11 @@ main(int argc, char** argv, char **env)
myData = [[NSData alloc] initWithBytesNoCopy: c
length: o];
}
else if (eIn == YES)
{
myData = [myString dataUsingEncoding: iEnc
allowLossyConversion: NO];
}
else
{
myData = [myString dataUsingEncoding: oEnc

View file

@ -177,76 +177,6 @@ static void queue_probe(struct in_addr* to, struct in_addr *from,
int num_extras, struct in_addr* extra, int is_reply);
#ifdef __MINGW__
/* A simple implementation of getopt() */
static int
indexof(char c, char *string)
{
int i;
for (i = 0; i < strlen(string); i++)
{
if (string[i] == c)
{
return i;
}
}
return -1;
}
static char *optarg;
static char
getopt(int argc, char **argv, char *options)
{
static int argi;
static char *arg;
int index;
char retval = '\0';
optarg = NULL;
if (argi == 0)
{
argi = 1;
}
while (argi < argc)
{
arg = argv[argi];
if (strlen(arg) == 2)
{
if (arg[0] == '-')
{
if ((index = indexof(arg[1], options)) != -1)
{
retval = arg[1];
if (index < strlen(options))
{
if (options[index+1] == ':')
{
if (argi < argc-1)
{
argi++;
optarg = argv[argi];
}
else
{
return -1; /* ':' given, but argv exhausted */
}
}
}
}
}
}
argi++;
return retval;
}
return -1;
}
#endif
static char ebuf[2048];

10
configure vendored
View file

@ -11949,6 +11949,11 @@ fi
# On some systems - force redefinition to be used as the /proc stuff
# doesn't work. Allow NSProcessInfo initialization method also.
#--------------------------------------------------------------------
PASS_ARG=no
case "$target_os" in
cygwin*) PASS_ARG=yes;;
esac
echo "$as_me:$LINENO: checking \"use of pass-through arguments\"" >&5
echo $ECHO_N "checking \"use of pass-through arguments\"... $ECHO_C" >&6
# Check whether --enable-pass-arguments or --disable-pass-arguments was given.
@ -11956,12 +11961,9 @@ if test "${enable_pass_arguments+set}" = set; then
enableval="$enable_pass_arguments"
else
enable_pass_arguments=no
enable_pass_arguments=$PASS_ARG
fi;
case "$target_os" in
cygwin*) enable_pass_arguments=yes;;
esac
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else

View file

@ -797,14 +797,16 @@ AC_CHECK_LIB(kvm, kvm_getenvv)
# On some systems - force redefinition to be used as the /proc stuff
# doesn't work. Allow NSProcessInfo initialization method also.
#--------------------------------------------------------------------
PASS_ARG=no
case "$target_os" in
cygwin*) PASS_ARG=yes;;
esac
AC_MSG_CHECKING("use of pass-through arguments")
AC_ARG_ENABLE(pass-arguments,
[ --enable-pass-arguments Force user main call to NSProcessInfo initialize],,
enable_pass_arguments=no)
enable_pass_arguments=$PASS_ARG)
case "$target_os" in
cygwin*) enable_pass_arguments=yes;;
esac
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else