Re: Wierd error
Re: Wierd error
- Subject: Re: Wierd error
- From: Doug McNutt <email@hidden>
- Date: Tue, 23 Sep 2003 05:57:47 -0600
At 00:15 -0500 9/23/03, John Fowler wrote, and I snipped:
>
Between working (for the last year and more, impeccably) and not working, the only interesting thing I can say happened was that I tried my hand at perl last night on this computer, completely unrelated to this application.
Perl would make short work of your trimming operation. It's regular expression syntax with anchors for start of line and end of line are very close to what you want. I know. There's a learning curve.
>
I mention this only in case some deep system setting may have been reset by perl, but I think otherwise this is absurd as an explanation for what is going on. Even this is crazy, since the program ran fine this morning and only started acting oddly around mid-day when no programming or anything was going on. I run OS X 10.2.8.
I received and installed 10.2.8 just about the time your problems began. Did you get it earlier than everyone else? Or did it install itself while you were not watching?
Your code uses ASCII numbers which depend on simple ASCII encoding as used before Apple started getting serious about UTF-8 and international text with 16 bit characters. It's quite likely that the system upgrade made some changes in that area. Perl's regular expressions will accept a list of acceptable characters like [A-Za-z0-9] and worry about the encoding for you.
>
Oddly, when I call the handler in a test scenario by just Trim("BLOW, JOE"), it works fine. It only seems to omit the first letter in the setting of the actual program.
What about the code that creates the data in the first place? Is it producing old fashioned ASCII text or has it started using UTF-8 or UTF16?
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Wierd error (From: John Fowler <email@hidden>) |