• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask with non-ASCII paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask with non-ASCII paths


  • Subject: Re: NSTask with non-ASCII paths
  • From: Kevin Ballard <email@hidden>
  • Date: Fri, 7 Jan 2005 20:24:30 -0500

It sounds like this is a bug with sips, not with NSTask. Have you tried running the same command from the Terminal?

On Jan 7, 2005, at 6:45 PM, Andrew Zamler-Carhart wrote:

I have a method that uses NSTask to wrap a command-line tool called sips (see sips --help for more info). Currently, it works great for most files. However, files with any non-ASCII characters in their paths cause this method to fail.

Here is the code that I am using. I need to be able to call -setCurrentDirectoryPath: and -setArguments: with strings that may contain foreign-language characters (Russian, Japanese, etc.)

[snip]

Does anybody have any suggestions for how to convert non-ASCII paths so that NSTask and sips will communicate properly?

For what it's worth, I tried using NSTask to run ls, and it accepted the non-ASCII paths just fine. So I'm not sure how ls and sips are different in this regard.

-- Kevin Ballard email@hidden http://www.tildesoft.com http://kevin.sb.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTask with non-ASCII paths
      • From: Ryan Stevens <email@hidden>
References: 
 >NSTask with non-ASCII paths (From: Andrew Zamler-Carhart <email@hidden>)

  • Prev by Date: Re: Drawing scaled lines
  • Next by Date: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled
  • Previous by thread: NSTask with non-ASCII paths
  • Next by thread: Re: NSTask with non-ASCII paths
  • Index(es):
    • Date
    • Thread