• 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: Very strange build errors (warning...long)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very strange build errors (warning...long)


  • Subject: Re: Very strange build errors (warning...long)
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 25 Feb 2002 23:51:33 +0100

Joseph,

>>>>>> Joseph Jones (JJ) wrote at Fri, 22 Feb 2002 17:48:14 -0800:
JJ> tr -cs "[:alnum:]" MyFile.m
JJ>
JJ> That's what I got form the man page. While it's probably not correct, it
JJ> worked well enough.

Well... I don't think this is exactly what you wanted. Effectively, you said
"Squeeze any sequence of non-alphanumeric characters into one character".
Although it should not break the source itself, it would terribly mess up
formatting and it would mangle string constants as well.

What I recommended was simply to delete all characters above 0x80 (=octal
200); with one-byte encoding it would never touch anything which is all right
in a code: tr -d '\200' < MyFile.m (you have to use stdin for tr, it can't
read a file given from the commandline).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Carbon Date to NSDate - How?
  • Next by Date: Re: text-to-speech problems, or is it just me?
  • Previous by thread: Re: Very strange build errors (warning...long)
  • Next by thread: Changing "MyDocument" to another class
  • Index(es):
    • Date
    • Thread