On 2005-08-18 17:53:24 -0700, Joe Buck wrote: > On Thu, Aug 18, 2005 at 11:52:36PM +0200, Vincent Lefevre wrote: > > On 2005-08-18 21:53:47 +0200, Branko Čibej wrote: > > > Mike Stump wrote: > > [...] > > > > printf ("%d", i); > > [...] > > > Now imagine that the output of the original program depends on the > > > locale that's in force at execution time, which defines numberic > > > output to be in arabic numerals (real ones, not the sort we see in > > > ASCII). > > > > Is it possible? I would have thought that only the decimal-point > > character depends on the locale. > > The digits we use come from the Arabs, and look much the same in Arabic. > Check an Arabic-language site, for example http://www.aljazeera.net/ .
I agree, but you don't answer the question. The point is that they are different characters. I think the digits mentioned by Branko are the characters U+0660 to U+0669 (ARABIC-INDIC DIGIT ZERO and so on). Many languages have their own 0 to 9 digits in Unicode. But I don't think the decimal digits used for %d above depend on the locale (e.g. I don't think a C implementation may use them if it uses the ASCII ones in the C locale). -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA