62mkv | 1 Apr 2010 15:19
Picon

request for help: connecting to WIN1251 (ANSI) codepaged DB (FB1.0.3) in Lazarus

Hello ,

  when trying to connect to FB 1.0.3 server, to database that was
  created using WIN1251 (Windows Ansi Cyrillic) CHARSET, via SqlDB
  TIBConnection component, all Lazarus visual components display ASCII
  (32-127) characters OK, but all Cyrillic characters are displayed as
  ????

  I cannot convert DB (anyway, FB 1.0.3 doesn't
  support UTF8) or switch to using another FB.

  I've made requests on several FreePascal\Lazarus forums, all states
  that I need either to migrate to migrate to more recent version of
  FB (most popular advice, which I cannot follow) or "patch" SqlDB
  components so that they should make on-the-fly AnsiToUTF8 and vice versa conversion

  Please tell me, is it the only way, and if yes, than how to do it,
  more exactly, cause I'm a terribly new to Lazarus

Best wishes, 62mkv

mailto: 62mkv@...

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Hartmut Eilers | 2 Apr 2010 00:53

Re: Comedi hardware support

Thanks, for your answers, I try my best and come back

Hartmut

--

-- 
Hartmut Eilers                          <hartmut@...>
Dorffer Str. 53                           http://www.eilers.net
52076 Aachen                           01522/1656914
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Jim | 3 Apr 2010 15:07
Picon

Re: More memory leaks and other problems: request for review of probably stupid mistake

On 31-3-2010 20:47, Flávio Etrusco wrote:
>> If you still want to use records, before the Dispose(APResultRecord)
>> set the ansistring fields to '', this will garantee that the reference
>> is freed.
>>
>>     
> Or call Finalize() on them.
>
> Flávio
>
>   
Dear José & Flávio,

Thanks for the tips; I"ve taken José's advice and replaced the records
with objects. This does make things easier as long as you think
object-oriented; I was suffering from exhaustion and a deja-vu with
QuickBasic record structures ;)

I have to test the code a bit more to see if it falls over on large
filesystems and if it works on OSX (and possibly Maemo/Nokia N900 -
hmmm, would have to have a cross compiler setup for that ;).

After that, it's off to the databases: storing the results into a
Firebird database at first. I'll probably start with prepared SQL
statements; later I might look into tiOPF.

Then (by Christmas ;) probably a Lazarus GUI for searching through the
results, running scans etc.

The code is on
(Continue reading)

John Coppens | 3 Apr 2010 17:33
Favicon

Documentation strangeness

Hi people,

I was using the Pascal reference manual, and found that 'fi' was replaced
by some strange character... Modifiers came out as Modi�ers etc. This
seems to have happened all over the document at:

http://community.freepascal.org:10000/docs-html/ref/ref.html

This is just a little frustrating, but maybe it's an easy thing to avoid
and regenerate the document. If it's more work-intensive, I offer my help
in editing...

John
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Graeme Geldenhuys | 3 Apr 2010 17:59
Picon
Gravatar

Re: Documentation strangeness

On 3 April 2010 17:33, John Coppens <john@...> wrote:
>
> I was using the Pascal reference manual, and found that 'fi' was replaced
> by some strange character... Modifiers came out as Modi�ers etc. This
> seems to have happened all over the document at:

Clearly the export as HTML from LaTeX doesn't support the 'fi'
ligature. The 'f' and 'i' becomes one character. The actual LaTeX
documentation  (*.tex) files has it as 'f' and 'i', so there is no
need for fixing the documentation - it's just the HTML export that is
buggy.

Here is an example of what should have happened.
   http://sayamindu.randomink.org/conv_guide/ch01s02.html

--

-- 
Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Michael Van Canneyt | 3 Apr 2010 18:10
Favicon

Re: Documentation strangeness


On Sat, 3 Apr 2010, Graeme Geldenhuys wrote:

> On 3 April 2010 17:33, John Coppens <john@...> wrote:
>>
>> I was using the Pascal reference manual, and found that 'fi' was replaced
>> by some strange character... Modifiers came out as Modi???ers etc. This
>> seems to have happened all over the document at:
>
> Clearly the export as HTML from LaTeX doesn't support the 'fi'
> ligature. The 'f' and 'i' becomes one character. The actual LaTeX
> documentation  (*.tex) files has it as 'f' and 'i', so there is no
> need for fixing the documentation - it's just the HTML export that is
> buggy.
>
> Here is an example of what should have happened.
>   http://sayamindu.randomink.org/conv_guide/ch01s02.html

I am aware of the ligature problem; The main problem is that it requires
re-configuration of tex4ht to fix it. I did it once, maybe an update 
destroyed this work :/

The good news is that the PDF documentation is correct, and
is still - as it always been - the preferred format.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

(Continue reading)

Graeme Geldenhuys | 3 Apr 2010 18:17
Picon
Gravatar

Re: Documentation strangeness

On 3 April 2010 18:10, Michael Van Canneyt <michael@...> wrote:
>
> The good news is that the PDF documentation is correct, and
> is still - as it always been - the preferred format.

On a side note: The INF version of the Language Reference is also
correct. Just a few more sections to complete, then I'll make it
publicly available - including the binary DocView (INF viewer).

--

-- 
Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Marco van de Voort | 3 Apr 2010 20:36
Picon
Favicon

Re: Documentation strangeness

In our previous episode, Michael Van Canneyt said:
> >   http://sayamindu.randomink.org/conv_guide/ch01s02.html
> 
> I am aware of the ligature problem; The main problem is that it requires
> re-configuration of tex4ht to fix it. I did it once, maybe an update 
> destroyed this work :/

The refered documentation (on the FPC community server) is from 2006:

Reference guide for Free Pascal, version 2.2
Document version 2.0
August 2006

Michaël Van Canneyt

> The good news is that the PDF documentation is correct, and
> is still - as it always been - the preferred format.

The PDF is mostly good for printing, nothing else.

I don't print the docs at each release.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Werner Van Belle | 3 Apr 2010 21:01

Reference Counting

Hello Dear Freepascal users,

I'm a newbee to object pascal. I did however program in turbo pascal.
The past couple of days I learned that there exist a variety of
classes/object systems in freepascal. Now, I already figured out that
the generic class generators are that what we are looking for, which
means that we will be generating classes.

Now, as far as I understand it, these classes are in a sense 'smart
pointers' (yes, I come from a C++ env), and I found some hints at
various places that automatic reference counting should be available in
object pascal. So I tried a little testprogram to see when the objects
instatiated from a class are disposed off. Below is the little program:

{$mode objfpc}

Type
   TReferenceCount = Class
 Public
   nummerke: Integer;
   Destructor Destroy;
end;

Destructor TReferenceCount.Destroy;
begin
   WriteLn('Deallocation');
end;

var
   Test    : TReferenceCount;
(Continue reading)

Graeme Geldenhuys | 3 Apr 2010 22:48
Picon
Gravatar

Re: Documentation strangeness

On 3 April 2010 20:36, Marco van de Voort <marcov@...> wrote:
>
> The PDF is mostly good for printing, nothing else.

I must agree. PDF's looks good on paper, but is terrible to search on
screen (very slow), hyperlinks/cross-linking is not always available,
no context sensitive help integration from IDE's etc. The INF versions
solve all those issues and has much better screen format/layout than
the CHM versions.

--

-- 
Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Gmane