Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Sven Barth
Am 28.11.2014 05:01 schrieb "Hans-Peter Diettrich" : > > Sven Barth schrieb: > > >> At my old company our Delphi application handled runtime changes to these settings rather well. For display the normal XToY (e.g. DateToStr) functions are used which use the DefaultFormatSettings which are updated a

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Hans-Peter Diettrich
Frederic Da Vitoria schrieb: 2014-11-26 16:54 GMT+01:00 Hans-Peter Diettrich >: 2) Formatted numbers, as enterd by the user (maybe by copy&paste from other applications), can have various encodings. Before a conversion into binary values I'd remove all un

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Hans-Peter Diettrich
Sven Barth schrieb: At my old company our Delphi application handled runtime changes to these settings rather well. For display the normal XToY (e.g. DateToStr) functions are used which use the DefaultFormatSettings which are updated automatically (the VCL's message loop triggers a repaint whe

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Mattias Gaertner
On Tue, 25 Nov 2014 20:12:31 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Michael Van Canneyt said: > > > The ThousandSeparator is "char" and supports only 1 byte characters. > > > For example French and Russian need more. > > > Are there any plans to extend i

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Thu, 27 Nov 2014 11:02:06 +0100 Sven Barth wrote: [...] Yes, there's a message for that and yes on non-Windows OSes this might be problematic... AFAIK on Unix systems you can start each program with a different locale. The system wide locale is just the default on

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Mattias Gaertner
On Thu, 27 Nov 2014 11:02:06 +0100 Sven Barth wrote: >[...] > Yes, there's a message for that and yes on non-Windows OSes this might be > problematic... AFAIK on Unix systems you can start each program with a different locale. The system wide locale is just the default on start. Therefore changi

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Sven Barth
Am 27.11.2014 08:47 schrieb "Mark Morgan Lloyd" < markmll.fpc-de...@telemetry.co.uk>: > > Sven Barth wrote: >> >> On 26.11.2014 16:54, Hans-Peter Diettrich wrote: >>> >>> When the system does not notify all other (running) programs of such an >>> global change, or when some other stupid program doe

Re: [fpc-devel] ThousandSeparator

2014-11-27 Thread Frederic Da Vitoria
2014-11-26 16:54 GMT+01:00 Hans-Peter Diettrich : > 2) Formatted numbers, as enterd by the user (maybe by copy&paste from > other applications), can have various encodings. Before a conversion into > binary values I'd remove all unexpected characters, except for the last > (rightmost) '.' or ',',

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Mark Morgan Lloyd
Sven Barth wrote: On 26.11.2014 16:54, Hans-Peter Diettrich wrote: When the system does not notify all other (running) programs of such an global change, or when some other stupid program doesn't know how to deal with changed settings, the user better shuts down and restarts his system, before a

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Sven Barth
On 26.11.2014 16:54, Hans-Peter Diettrich wrote: When the system does not notify all other (running) programs of such an global change, or when some other stupid program doesn't know how to deal with changed settings, the user better shuts down and restarts his system, before and after using that

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Hans-Peter Diettrich
Ewald schrieb: Of the OS/window manager actually. You are of course right in that there are a certain set of separators that can be used, but the exact separator to use is dependent on the system. Sounds easy, but just yesterday I ran into a bunch of related problems. Even if the following is

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > >> what else should it be? > > > > A shift space. In utf8 that takes two bytes. > > How does that look when hand-written on a cheque? I haven't seen a cheque in a decade, but I assume that depends on the hand having an utf8 encoding or not. ___

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Frederic Da Vitoria
2014-11-26 9:47 GMT+01:00 Michael Schnell : > On 11/26/2014 01:54 AM, Mark Morgan Lloyd wrote: > >> >> How does that look when hand-written on a cheque? >> >> Supposedly this is a non-breaking space, that does not allow to be > replaced by a line-break (  in HTML) Precisely. -- Frederic Da Vi

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Michael Schnell
On 11/26/2014 01:54 AM, Mark Morgan Lloyd wrote: How does that look when hand-written on a cheque? Supposedly this is a non-breaking space, that does not allow to be replaced by a line-break (  in HTML) -Michael ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] ThousandSeparator

2014-11-26 Thread Frederic Da Vitoria
2014-11-26 1:54 GMT+01:00 Mark Morgan Lloyd < markmll.fpc-de...@telemetry.co.uk>: > Marco van de Voort wrote: > >> In our previous episode, Pierre Free Pascal said: >> >>> I am surprised, >>> for me, as French, I always believed that >>> the French thousand separator is simply a space, >>> what el

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Pierre Free Pascal said: I am surprised, for me, as French, I always believed that the French thousand separator is simply a space, what else should it be? A shift space. In utf8 that takes two bytes. How does that look when hand-written on

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Ewald
On 11/25/2014 07:36 PM, Hans-Peter Diettrich wrote: > > I'd assume that national separators are part of the according > codepage, but is that always true? Of the OS/window manager actually. You are of course right in that there are a certain set of separators that can be used, but the exact separa

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 19:36:45 +0100 Hans-Peter Diettrich wrote: >[...] > > Maybe a widechar is sufficient ? Making it a string is more invasive > > than making it a widechar. > > Are all possible separators members of the Unicode BMP? I found 12 thousand-separators and they are all in the BMP.

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Sven Barth
Am 25.11.2014 17:51 schrieb "Michael Van Canneyt" : > > > > On Tue, 25 Nov 2014, Mattias Gaertner wrote: > >> Hi, >> >> The ThousandSeparator is "char" and supports only 1 byte characters. >> For example French and Russian need more. >> Are there any plans to extend it? > > > Plans: yes. Time: no.

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Does concatenating a string and a WideChar create a UnicodeString? Can this become a problem? Concatenation requires 2 strings, so everything depends on the concrete code. Regardless of eventual compiler magics, something like this will happen: var c: WideChar; s,

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: The ThousandSeparator is "char" and supports only 1 byte characters. For example French and Russian need more. Are there any plans to extend it? Plans: yes. Time: no. Maybe a widechar is sufficient ? Making it a string is more invasive than making it a widechar.

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > The ThousandSeparator is "char" and supports only 1 byte characters. > > For example French and Russian need more. > > Are there any plans to extend it? > > Plans: yes. Time: no. > > Maybe a widechar is sufficient ? If you start changing th

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 17:51:41 +0100 (CET) Michael Van Canneyt wrote: > > > On Tue, 25 Nov 2014, Mattias Gaertner wrote: > > > Hi, > > > > The ThousandSeparator is "char" and supports only 1 byte characters. > > For example French and Russian need more. > > Are there any plans to extend it? > >

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Michael Van Canneyt
On Tue, 25 Nov 2014, Mattias Gaertner wrote: Hi, The ThousandSeparator is "char" and supports only 1 byte characters. For example French and Russian need more. Are there any plans to extend it? Plans: yes. Time: no. Maybe a widechar is sufficient ? Making it a string is more invasive than

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Frederic Da Vitoria
2014-11-25 17:21 GMT+01:00 Pierre Free Pascal : > I am surprised, > for me, as French, I always believed that > the French thousand separator is simply a space, > what else should it be? > Not quite. It looks like a space, but: - you wouldn't like to see 2 000 € printed as: 2 000 € would you? -

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said: > I am surprised, > for me, as French, I always believed that > the French thousand separator is simply a space, > what else should it be? A shift space. In utf8 that takes two bytes. ___ fpc-devel mailli

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Vsevolod Alekseyev
Strasbourg, France -Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Mattias Gaertner Envoyé : mardi 25 novembre 2014 17:15 À : fpc-devel@lists.freepascal.org Objet : [fpc-devel] ThousandSeparator Hi, The Th

Re: [fpc-devel] ThousandSeparator

2014-11-25 Thread Pierre Free Pascal
freepascal.org] De la part de Mattias Gaertner > Envoyé : mardi 25 novembre 2014 17:15 > À : fpc-devel@lists.freepascal.org > Objet : [fpc-devel] ThousandSeparator > > Hi, > > The ThousandSeparator is "char" and supports only 1 byte characters. > For example French

[fpc-devel] ThousandSeparator

2014-11-25 Thread Mattias Gaertner
Hi, The ThousandSeparator is "char" and supports only 1 byte characters. For example French and Russian need more. Are there any plans to extend it? Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/m

Re: [fpc-devel] ThousandSeparator and UTF-8

2009-10-02 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: > 2009/10/2 : >> On Linux and cs_CZ.UTF-8 locale is thousand separator set to >> NO-BREAK SPACE (UTF-8: 0xC2 0xA0). >> >> But ThousandSeparator variable is defined as Char. Fpc sets >> ThousandSeparator=0xA0 and kylix ThousandSeparator=0xC2. >> >> Any ideas how to correc

Re: [fpc-devel] ThousandSeparator and UTF-8

2009-10-02 Thread petr . kristan
On Fri, Oct 02, 2009 at 04:42:51PM +0200, Graeme Geldenhuys wrote: > 2009/10/2 : > > On Linux and cs_CZ.UTF-8 locale is thousand separator set to > > NO-BREAK SPACE (UTF-8: 0xC2 0xA0). > > > > But ThousandSeparator variable is defined as Char. Fpc sets > > ThousandSeparator=0xA0 and kylix Thousand

Re: [fpc-devel] ThousandSeparator and UTF-8

2009-10-02 Thread Graeme Geldenhuys
2009/10/2 : > On Linux and cs_CZ.UTF-8 locale is thousand separator set to > NO-BREAK SPACE (UTF-8: 0xC2 0xA0). > > But ThousandSeparator variable is defined as Char. Fpc sets > ThousandSeparator=0xA0 and kylix ThousandSeparator=0xC2. > > Any ideas how to correctly solve it? This is a know probl

[fpc-devel] ThousandSeparator and UTF-8

2009-10-02 Thread petr . kristan
On Linux and cs_CZ.UTF-8 locale is thousand separator set to NO-BREAK SPACE (UTF-8: 0xC2 0xA0). But ThousandSeparator variable is defined as Char. Fpc sets ThousandSeparator=0xA0 and kylix ThousandSeparator=0xC2. Any ideas how to correctly solve it? Petr -- Ing. Petr Kristan . EPOS PRO s.r.o.