[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for Unicode.m
From: |
Yen-Ju Chen |
Subject: |
Patch for Unicode.m |
Date: |
Wed, 30 Jul 2003 18:03:51 -0400 |
Here is a patch to fix [NSString availableStringEncodings],
in which the last encoding is missing (NSBIG5StringEncoding).
By the way, I can't make "cvtenc -EscapeIn YES" to work.
Can anyone make a test ?
I found the output of "cvtenc -EscapeIn YES" is in UCS-2 encoding,
no matter my GNUSTEP_STRING_ENCODING or "cvtenc -Encoding" setting.
Thanx.
Yen-Ju
*** Unicode.m.orig Wed Jul 30 17:55:55 2003
--- Unicode.m Wed Jul 30 17:47:02 2003
***************
*** 325,331 ****
GSSetupEncodingTable();
encodings = objc_malloc(sizeof(NSStringEncoding) * (encTableSize+1));
pos = 0;
! for (i = 0; i < encTableSize; i++)
{
if (GSEncodingSupported(i) == YES)
{
--- 325,331 ----
GSSetupEncodingTable();
encodings = objc_malloc(sizeof(NSStringEncoding) * (encTableSize+1));
pos = 0;
! for (i = 0; i < encTableSize+1; i++)
{
if (GSEncodingSupported(i) == YES)
{
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch for Unicode.m,
Yen-Ju Chen <=