Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Truly simple systems... require infinite testing. -- Norman Augustine


devel / comp.lang.clipper.visual-objects / Romania characters file open

SubjectAuthor
* Romania characters file opendanijel koprivnjak
+- Re: Romania characters file opendlzc
`* Re: Romania characters file openJamal
 `- Re: Romania characters file openPhil McGuinness

1
Romania characters file open

<c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1117&group=comp.lang.clipper.visual-objects#1117

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ae9:e702:0:b0:6b5:9c37:8b23 with SMTP id m2-20020ae9e702000000b006b59c378b23mr11429826qka.511.1659349607697;
Mon, 01 Aug 2022 03:26:47 -0700 (PDT)
X-Received: by 2002:a05:6214:e46:b0:473:5ada:7366 with SMTP id
o6-20020a0562140e4600b004735ada7366mr13207197qvc.113.1659349607527; Mon, 01
Aug 2022 03:26:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 1 Aug 2022 03:26:47 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=82.214.99.178; posting-account=XZjwDgoAAADl5EL5luCTXpXUHLnfD4OT
NNTP-Posting-Host: 82.214.99.178
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com>
Subject: Romania characters file open
From: danijel.koprivnjak@gmail.com (danijel koprivnjak)
Injection-Date: Mon, 01 Aug 2022 10:26:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1773
 by: danijel koprivnjak - Mon, 1 Aug 2022 10:26 UTC

Hi,
I have a request to check Romanian files (txt files),
but I have big problems with the Romanian code page
When I open the file, I can't get two characters, I can't read characters ş and ț
cBuffer := MemAlloc(F_BLOCK)
IF cBuffer = NULL_PTR
RETURN FALSE
ENDIF
nHandleImport:=FOpen2(cImportFile,FO_READ+FO_EXCLUSIVE,NULL_STRING)
nHandleCheck :=FCreate( cExportFile,FC_NORMAL )
FRead4(nHandleImport, cBuffer, F_BLOCK,FALSE)
FWrite4(nHandleCheck, cBuffer,PszLen(cBuffer), FALSE)

FClose(nHandleImport)
MemFree(cBuffer)

I open the file, read it, save it and I have difference in the header and of course I don't get the above characters.

Any idea ?
many thx
Best
Danijel

Re: Romania characters file open

<41e4f4c6-e556-436d-81b1-1c4b81e391een@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1118&group=comp.lang.clipper.visual-objects#1118

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:4542:b0:6b3:7c51:6177 with SMTP id u2-20020a05620a454200b006b37c516177mr12526082qkp.306.1659368390267;
Mon, 01 Aug 2022 08:39:50 -0700 (PDT)
X-Received: by 2002:a37:9ad1:0:b0:6b5:cf24:6e37 with SMTP id
c200-20020a379ad1000000b006b5cf246e37mr12649977qke.148.1659368390070; Mon, 01
Aug 2022 08:39:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 1 Aug 2022 08:39:49 -0700 (PDT)
In-Reply-To: <c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <41e4f4c6-e556-436d-81b1-1c4b81e391een@googlegroups.com>
Subject: Re: Romania characters file open
From: dlzc1@cox.net (dlzc)
Injection-Date: Mon, 01 Aug 2022 15:39:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2495
 by: dlzc - Mon, 1 Aug 2022 15:39 UTC

On Monday, August 1, 2022 at 3:26:48 AM UTC-7, danijel.k...@gmail.com wrote:
> Hi,
> I have a request to check Romanian files (txt files),
> but I have big problems with the Romanian code page
> When I open the file, I can't get two characters, I can't read characters ş and ț
> cBuffer := MemAlloc(F_BLOCK)
> IF cBuffer = NULL_PTR
> RETURN FALSE
> ENDIF
> nHandleImport:=FOpen2(cImportFile,FO_READ+FO_EXCLUSIVE,NULL_STRING)
> nHandleCheck :=FCreate( cExportFile,FC_NORMAL )
> FRead4(nHandleImport, cBuffer, F_BLOCK,FALSE)
> FWrite4(nHandleCheck, cBuffer,PszLen(cBuffer), FALSE)
>
> FClose(nHandleImport)
> MemFree(cBuffer)
>
> I open the file, read it, save it and I have difference in the header and of course
> I don't get the above characters.
>
> Any idea ?

* I don't see a FClose operation nHandleCheck.

* Your aren't saying if the problem is in "file name" or "file contents".

* What is the size of cBuffer, right after you create it?

* I don't recognize the syntax FRead4 and FWrite4... are these built-ins or home-rolled?

* What character sets does PszLen recognize? Any options that do not require null terminated (assuming) strings?

Places I'd suggest you look.

David A. Smith

Re: Romania characters file open

<tcae6q$9hs$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1119&group=comp.lang.clipper.visual-objects#1119

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Romania characters file open
Date: Tue, 2 Aug 2022 01:54:33 -0400
Organization: Aioe.org NNTP Server
Message-ID: <tcae6q$9hs$1@gioia.aioe.org>
References: <c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="9788"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Jamal - Tue, 2 Aug 2022 05:54 UTC

Hi Danijel,

This is possibly due to the OEM to ANSI conversion since you are passing
FALSE in the 4th parameter of the FRead4() function. Try passing TRUE:

FRead4(nHandleImport, cBuffer, F_BLOCK, TRUE)

The same goes for FWrite4().

You may also try using FReadLine() which is not dependent upon the
status of SetAnsi(). From the VO documentation:

Sample:

ptrHandle := FOpen2("docs.txt", FO_READ)

IF ptrHandle != F_ERROR

DO WHILE !FEOF(ptrHandle)

? FReadLine(ptrHandle)

ENDDO

ENDIF

FClose(ptrHandle)

Jamal

On 8/1/2022 6:26 AM, danijel koprivnjak wrote:
> Hi,
> I have a request to check Romanian files (txt files),
> but I have big problems with the Romanian code page
> When I open the file, I can't get two characters, I can't read characters ş and ț
> cBuffer := MemAlloc(F_BLOCK)
> IF cBuffer = NULL_PTR
> RETURN FALSE
> ENDIF
> nHandleImport:=FOpen2(cImportFile,FO_READ+FO_EXCLUSIVE,NULL_STRING)
> nHandleCheck :=FCreate( cExportFile,FC_NORMAL )
> FRead4(nHandleImport, cBuffer, F_BLOCK,FALSE)
> FWrite4(nHandleCheck, cBuffer,PszLen(cBuffer), FALSE)
>
> FClose(nHandleImport)
> MemFree(cBuffer)
>
> I open the file, read it, save it and I have difference in the header and of course I don't get the above characters.
>
> Any idea ?
> many thx
> Best
> Danijel

Re: Romania characters file open

<421f4a7d-c2ba-477a-ad09-2f5225e433f6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1120&group=comp.lang.clipper.visual-objects#1120

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:5fc1:0:b0:31e:f847:6c6f with SMTP id k1-20020ac85fc1000000b0031ef8476c6fmr25067114qta.616.1659577181500;
Wed, 03 Aug 2022 18:39:41 -0700 (PDT)
X-Received: by 2002:ac8:5cd4:0:b0:31f:1cee:f3d2 with SMTP id
s20-20020ac85cd4000000b0031f1ceef3d2mr24566500qta.549.1659577181332; Wed, 03
Aug 2022 18:39:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Wed, 3 Aug 2022 18:39:41 -0700 (PDT)
In-Reply-To: <tcae6q$9hs$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fRzZsQoAAADwaaqj-H-lyUfDBtpEL68c
NNTP-Posting-Host: 220.233.174.33
References: <c81443f5-4144-4385-9ab2-2a7f5382a5a4n@googlegroups.com> <tcae6q$9hs$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <421f4a7d-c2ba-477a-ad09-2f5225e433f6n@googlegroups.com>
Subject: Re: Romania characters file open
From: mcguinnesssherlock@gmail.com (Phil McGuinness)
Injection-Date: Thu, 04 Aug 2022 01:39:41 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1408
 by: Phil McGuinness - Thu, 4 Aug 2022 01:39 UTC

On Tuesday, August 2, 2022 at 3:54:38 PM UTC+10, Jamal wrote:
> Hi Danijel,

Trie setting ;

SetAnsi(TRUE) // DO NOT Remove required for correct CHR values EOM to ANSI elsc CSV contain UTF8/OEM chars

Before processing the file.

Phil

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor