|
From: George R. <gr...@us...> - 2005-05-26 22:25:37
|
%U is no longer supported. You should use %S. See the API reference for=20 details. This is yet another change to the icuio library before it became=20 supported. The old ustdio library was never officially supported. George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/ "Lior Halperin" <lio...@am...>=20 Sent by: icu...@li... 05/25/2005 10:53 PM Please respond to icu-support To <icu...@li...> cc Subject RE: [icu-support] using u=5Fvsprintf=5Fu =20 =20 Thanks for your answer. I did try to use u=5Fvsprintf=5Fu without the locale (and thought maybe the= =20 default will be en=5FUS).=20 I got the folowing log : =FE=FF % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 5 9 9 9 1 2=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 6 0 8 2 9 6=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 6 1 2 6 4 8=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 6 0 8 2 9 6=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 6 1 2 6 4 8=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 % U P o s i t i o n : % U P o s i t i o n :=20 T h r e a d : 0=20 E r r o r C o d e : 1 7 6 1 6 0 8 2 9 6=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 =20 =20 while before it was : =20 =FE=FF T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e C o n t a i n e r=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 0 6=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e U n i o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 5=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : S e t U n i = o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 7=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e U n i o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 5=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : S e t U n i = o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 7=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e U n i o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 5=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : S e t U n i = o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 7=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e U n i o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 5=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 5=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : S e t U n i = o n R a n g e=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 7=20 D e s c r i p t i o n : S e t t i n g d o m a i n s c o n t a i n = e r f o r u n i o n r a n g e h a s s t a r t e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 6=20 S e v e r i t y : W a r n i n g=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e C o n t a i n e r=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 3 6=20 D e s c r i p t i o n : F a i l e d t o g e t t h e s i m p l = e t y p e o f P r o v i n c e U n i o n T y p e d o m a i n .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 6=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V D o m a i n C o n t a i n e r : : P r e p a r = e C o n t a i n e r=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 1 0=20 D e s c r i p t i o n : C r e a t i n g d o m a i n s c o n t a i = n e r h a s e n d e d .=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 8=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V C n E E n g i n e : : R u n=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 2 2=20 D e s c r i p t i o n : P r o c e s s i n g o f g r o u p S e t 0 = 0 0 3 9 6 6 1 0 , g r o u p 0 0 0 3 9 6 6 1 0 s t a r t e d=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 1 0 : 3 9 : 4 8=20 S e v e r i t y : I n f o r m a t o r y=20 P o s i t i o n : G C V C n E E n g i n e : : R u n=20 T h r e a d : 0=20 E r r o r C o d e : 4 , 0 2 3=20 D e s c r i p t i o n : P r o c e s s i n g o f g r o u p S e t 0 = 0 0 3 9 6 6 1 0 , g r o u p 0 0 0 3 9 6 6 1 0 e n d e d - g r o=20 u p i s o k=20 =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F =5F=20 T i m e : 2 5 - 0 5 - 2 0 0 5 =20 =20 any ideas? =20 To: icu...@li... Subject: Re: [icu-support] using u=5Fvsprintf=5Fu Most people expect sprintf to use the C locale behavior (en=5FUS=5FPOSIX in= =20 ICU). So that is the default. Also the extra locale parameter made it=20 difficult to migrate existing sprintf users to icuio's sprintf. You were=20 using draft API, which is why the API change was allowed, and the current=20 API won't change anymore.=20 If you want to use a locale for sprintf, you should use u=5Ffstropen to=20 specify the locale, and you should use the u=5Ffprintf* functions.=20 George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/=20 "Lior Halperin" <lio...@am...>=20 Sent by: icu...@li...=20 05/24/2005 10:52 PM=20 Please respond to icu-support To <icu...@li...>=20 cc Subject [icu-support] using u=5Fvsprintf=5Fu Hi,=20 Until now I used ICU from version lower the 3.=20 In order to use u=5Fvsprintf=5Fu my code was :=20 =20 void GCVString::Format( const UChar * pFormat,...)=20 {=20 char * locale =3D (char *) "en=5FUS";=20 UChar TempStr[1024];=20 va=5Flist ArgPtr;=20 va=5Fstart( ArgPtr,pFormat );=20 u=5Fvsprintf=5Fu( (UChar *)TempStr, locale, pFormat, ArgPtr );=20 }=20 Now I installed ICU 3.2 and I see that the prototype of u=5Fvsprintf=5Fu=20 changed to=20 u=5Fvsprintf=5Fu (UChar *buffer, const UChar *patternSpecification, va=5Fli= st=20 ap)=20 (No locale )=20 So How should my code look like now.=20 Because I am not passing the locale to u=5Fvsprintf=5Fu , how would it kn= ow=20 what language to use.=20 Please send me a sample code if possible.=20 thanks,=20 =20 Lior=20 =20 =20 thanks,=20 =20 Lior Halperin=20 OMS PSO Operation - Conversion=20 Tel : 972-9-7761028=20 E-mail : li...@am...=20 =20 The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated=20 recipient(s) of the message. If the reader of this message is not the intended=20 recipient, you are hereby notified that any dissemination, use, distribution or=20 copying of=20 this communication is strictly prohibited and may be unlawful.=20 If you have received this communication in error, please notify us=20 immediately by replying to the message and deleting it from your computer. Thank you. The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated=20 recipient(s) of the message. If the reader of this message is not the intended=20 recipient, you are hereby notified that any dissemination, use, distribution or=20 copying of=20 this communication is strictly prohibited and may be unlawful.=20 If you have received this communication in error, please notify us=20 immediately by replying to the message and deleting it from your computer. Thank you. |