Hi,
When I try to connect to server using TypelessIRC found in VWNC 7.7 an error occur on Chinese locale windows xp. The problem is shown as following where aCharacter is a Chinese character '年' for 'year': noEncodingFor: aCharacter in: aStream (UnsupportedCharacterError new) messageText: (#errNoCharacter << #dialogs >> 'No character available') asString , ' for character value ' , aCharacter asInteger printString; parameter: aCharacter; raiseSignal. ^Character illegalCode asCharacter and this comes from a message asking Timestamp now printString while in Timestamp: printOn: stream "Format a respresentation of the receiver." stream policy dateAndTimePolicy print: self on: stream here is the problem. I believe this could cause trouble in alike situations but I don't know a way to avoid those potential troubles. Best Regards, Jim G _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Typeless is a contributed piece, and hasn't really been worked on in about 2 years...
James Robertson Cincom Smalltalk Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small and Carry a Big Class Library On Jan 21, 2010, at 8:20 AM, J G wrote: > Hi, > > When I try to connect to server using TypelessIRC found in VWNC 7.7 an > error occur on Chinese locale windows xp. > The problem is shown as following where aCharacter is a Chinese > character '年' for 'year': > > noEncodingFor: aCharacter in: aStream > (UnsupportedCharacterError new) > messageText: (#errNoCharacter << #dialogs >> 'No character available') > asString , ' for character value ' > , aCharacter asInteger printString; > parameter: aCharacter; > raiseSignal. > ^Character illegalCode asCharacter > > and this comes from a message asking Timestamp now printString while > in Timestamp: > > printOn: stream > "Format a respresentation of the receiver." > > stream policy dateAndTimePolicy print: self on: stream > > here is the problem. I believe this could cause trouble in alike > situations but I don't know a way to avoid those potential troubles. > > > > Best Regards, > > Jim G > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
James,
I think he was pointing out an issue not directly related to Typeless. -Boris -- DeepCove Labs Ltd. +1 (604) 689-0322 4th floor, 595 Howe Street Vancouver, British Columbia Canada V6C 2T5 http://tinyurl.com/r7uw4 PacNet Services (Europe) Ltd. +353 (0)61 714-360 Shannon Airport House, SFZ County Clare, Ireland http://tinyurl.com/y952amr CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of James Robertson Sent: 21 January 2010 15:18 To: VW NC Subject: Re: [vwnc] dateAndTimePolicy could cause Unicode related problem Typeless is a contributed piece, and hasn't really been worked on in about 2 years... James Robertson Cincom Smalltalk Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small and Carry a Big Class Library On Jan 21, 2010, at 8:20 AM, J G wrote: > Hi, > > When I try to connect to server using TypelessIRC found in VWNC 7.7 an > error occur on Chinese locale windows xp. > The problem is shown as following where aCharacter is a Chinese > character '年' for 'year': > > noEncodingFor: aCharacter in: aStream > (UnsupportedCharacterError new) > messageText: (#errNoCharacter << #dialogs >> 'No character available') > asString , ' for character value ' > , aCharacter asInteger printString; > parameter: aCharacter; > raiseSignal. > ^Character illegalCode asCharacter > > and this comes from a message asking Timestamp now printString while > in Timestamp: > > printOn: stream > "Format a respresentation of the receiver." > > stream policy dateAndTimePolicy print: self on: stream > > here is the problem. I believe this could cause trouble in alike > situations but I don't know a way to avoid those potential troubles. > > > > Best Regards, > > Jim G > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I wouldn't think so. That error indicates that it's trying
to put a character into a stream that can't support it. I would expect
that typeless either needs to use a different encoding for the stream, or
needs to escape the character somehow, depending on how the protocol
works.
At 10:25 AM 2010-01-21, Boris Popov, DeepCove Labs \(YVR\) wrote: James, I think he was pointing out an issue not directly related to Typeless. -Boris -- DeepCove Labs Ltd. +1 (604) 689-0322 4th floor, 595 Howe Street Vancouver, British Columbia Canada V6C 2T5 http://tinyurl.com/r7uw4 PacNet Services (Europe) Ltd. +353 (0)61 714-360 Shannon Airport House, SFZ County Clare, Ireland http://tinyurl.com/y952amr CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -----Original Message----- From: [hidden email] [[hidden email]] On Behalf Of James Robertson Sent: 21 January 2010 15:18 To: VW NC Subject: Re: [vwnc] dateAndTimePolicy could cause Unicode related problem Typeless is a contributed piece, and hasn't really been worked on in about 2 years... James Robertson Cincom Smalltalk Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small and Carry a Big Class Library On Jan 21, 2010, at 8:20 AM, J G wrote: > Hi, > > When I try to connect to server using TypelessIRC found in VWNC 7.7 an > error occur on Chinese locale windows xp. > The problem is shown as following where aCharacter is a Chinese > character 'å¹´' for 'year': > > noEncodingFor: aCharacter in: aStream > --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks for responding.
I was thinking if something could automatically adjust stream encoding according to circumstances and to match time and date policy. But I'm not sure where to do this. Regards, Jim G On Thu, Jan 21, 2010 at 11:32 PM, Alan Knight <[hidden email]> wrote: > I wouldn't think so. That error indicates that it's trying to put a > character into a stream that can't support it. I would expect that typeless > either needs to use a different encoding for the stream, or needs to escape > the character somehow, depending on how the protocol works. > > At 10:25 AM 2010-01-21, Boris Popov, DeepCove Labs \(YVR\) wrote: > > James, I think he was pointing out an issue not directly related to > Typeless. -Boris -- DeepCove Labs Ltd. +1 (604) 689-0322 4th floor, 595 Howe > Street Vancouver, British Columbia Canada V6C 2T5 http://tinyurl.com/r7uw4 > PacNet Services (Europe) Ltd. +353 (0)61 714-360 Shannon Airport House, SFZ > County Clare, Ireland http://tinyurl.com/y952amr CONFIDENTIALITY NOTICE This > email is intended only for the persons named in the message header. Unless > otherwise indicated, it contains information that is private and > confidential. If you have received it in error, please notify the sender and > delete the entire message including any attachments. Thank you. > -----Original Message----- From: [hidden email] [ > mailto:[hidden email]] On Behalf Of James Robertson Sent: 21 > January 2010 15:18 To: VW NC Subject: Re: [vwnc] dateAndTimePolicy could > cause Unicode related problem Typeless is a contributed piece, and hasn't > really been worked on in about 2 years... James Robertson Cincom Smalltalk > Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small > and Carry a Big Class Library On Jan 21, 2010, at 8:20 AM, J G wrote: > Hi, >> > When I try to connect to server using TypelessIRC found in VWNC 7.7 an > > error occur on Chinese locale windows xp. > The problem is shown as > following where aCharacter is a Chinese > character 'å¹´' for 'year': > > > noEncodingFor: aCharacter in: aStream > (UnsupportedCharacterError > new) > messageText: (#errNoCharacter << #dialogs >> 'No > character available') > asString > , ' for character value ' > , > aCharacter asInteger printString; > parameter: aCharacter; > > raiseSignal. > ^Character illegalCode asCharacter > > and > this comes from a message asking Timestamp now printString while > in > Timestamp: > > printOn: stream > "Format a respresentation of the > receiver." > > stream policy dateAndTimePolicy print: self on: > stream > > here is the problem. I believe this could cause trouble in alike >> situations but I don't know a way to avoid those potential troubles. > > > >> Best Regards, > > Jim G > > > _______________________________________________ > vwnc mailing list > > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ vwnc mailing list > [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ vwnc mailing list > [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > -- > Alan Knight [|], Engineering Manager, Cincom Smalltalk > [hidden email] > [hidden email] > http://www.cincom.com/smalltalk > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > -- Best Regards, Jim G _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by J G
J G wrote:
> I was thinking if something could automatically adjust stream encoding > according to circumstances and to match time and date policy. > But I'm not sure where to do this. VW already does, and that's perhaps the problem. I'd guess the Typeless code just accepts whatever the current Locale is, whereas it should maybe force the timestamp to be in a #C or US locale, in order to communicate the time correctly with IRC. That's just a guess though: look where the Timestamp string would be used, and you'll probably be able to see what kind of encoding / locale should be used. Steve _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |