bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #30172] Converting strings lossy results to different strings than


From: David Wetzel
Subject: [bug #30172] Converting strings lossy results to different strings than on OS X
Date: Fri, 18 Jun 2010 09:33:00 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; de-de) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

Update of bug #30172 (project gnustep):

              Item Group:          Change Request => Bug                    

    _______________________________________________________

Follow-up Comment #3:

please read the documentation.

http://developer.apple.com/mac/library/documentation/cocoa/reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/dataUsingEncoding:allowLossyConversion:

so an ä will become a
ö -> o
á -> a

etc

The implementation in base is just wrong.
And I am *not* using any C strings here.
See at the code I posted. its just a category on NSString, so you can create
a test program from it.

Cheers,

David


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30172>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]