Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Being overloaded is the sign of a true Debian maintainer. -- JHM on #Debian


devel / comp.emulators.apple2 / Re: KEGS' DynaPro feature drops trailing periods in filenames.

SubjectAuthor
* KEGS' DynaPro feature drops trailing periods in filenames.Brian Patrie
`* KEGS' DynaPro feature drops trailing periods in filenames.Kent Dickey
 `- KEGS' DynaPro feature drops trailing periods in filenames.Brian Patrie

1
KEGS' DynaPro feature drops trailing periods in filenames.

<t7rugd$h9l$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=712&group=comp.emulators.apple2#712

  copy link   Newsgroups: comp.emulators.apple2
Path: i2pn2.org!i2pn.org!aioe.org!1kzjxob1apDgcOKlV0dflQ.user.46.165.242.75.POSTED!not-for-mail
From: bpatrie@bellsouth.spamisicky.net (Brian Patrie)
Newsgroups: comp.emulators.apple2
Subject: KEGS' DynaPro feature drops trailing periods in filenames.
Date: Wed, 8 Jun 2022 23:55:39 -0500
Organization: an elaborate system of piles and accidents
Message-ID: <t7rugd$h9l$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="17717"; posting-host="1kzjxob1apDgcOKlV0dflQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Brian Patrie - Thu, 9 Jun 2022 04:55 UTC

I use trailing periods in ProDOS filenames from time to time (usually to
indicate that something has been modified from it's original form); but,
on a DynaPro mounted directory, odd things happen, and they ultimately
get dropped.

My current main usage of DynaPro is for using a host-native text editor
to edit text files; so it's only a minor inconvenience. But it would be
nice to see it eventually fixed.

It would also be nice if at least some of the ProDOS permission bits
were preserved somehow. But again, i can live with it as is for now; so
no rush.

:)

I'm using KEGS v1.16, under Linux Mint, btw.

Re: KEGS' DynaPro feature drops trailing periods in filenames.

<t87hfr$jug$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=715&group=comp.emulators.apple2#715

  copy link   Newsgroups: comp.emulators.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: kegs@provalid.com (Kent Dickey)
Newsgroups: comp.emulators.apple2
Subject: Re: KEGS' DynaPro feature drops trailing periods in filenames.
Date: Mon, 13 Jun 2022 14:27:07 -0000 (UTC)
Organization: provalid.com
Lines: 52
Message-ID: <t87hfr$jug$1@dont-email.me>
References: <t7rugd$h9l$1@gioia.aioe.org>
Injection-Date: Mon, 13 Jun 2022 14:27:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9fd783bad03f2affe17c08d870f3b4ca";
logging-data="20432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tzPVABDr7SUFvRXp9Vv7w"
Cancel-Lock: sha1:cSRLHUt6YqEjTT79NdPpLP/pf7I=
Originator: kegs@provalid.com (Kent Dickey)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
 by: Kent Dickey - Mon, 13 Jun 2022 14:27 UTC

In article <t7rugd$h9l$1@gioia.aioe.org>,
Brian Patrie <bpatrie@bellsouth.spamisicky.net> wrote:
>I use trailing periods in ProDOS filenames from time to time (usually to
>indicate that something has been modified from it's original form); but,
>on a DynaPro mounted directory, odd things happen, and they ultimately
>get dropped.
>
>My current main usage of DynaPro is for using a host-native text editor
>to edit text files; so it's only a minor inconvenience. But it would be
>nice to see it eventually fixed.
>
>It would also be nice if at least some of the ProDOS permission bits
>were preserved somehow. But again, i can live with it as is for now; so
>no rush.
>
>:)
>
>I'm using KEGS v1.16, under Linux Mint, btw.

This was an unfortunate bug in KEGS caused by the routine trying to legalize
names from your host Linux system to be valid ProDOS names.

When a character which is not valid for ProDOS was found in the native
name (say, en emoji, a space, anything other than A-Za-z0-9 or .), KEGS
would convert that character to a '.' in the ProDOS name.

So a name like "file (9)" would become "file..9.". So then KEGS tried to
eliminate '.'s at the end of the filename since they weren't useful, to
create "file..9" in this example.

But: if the native name already had a dot at the end, this was a legal
ProDOS name, but KEGS was still tossing it. So "TRY1." would be changed
to "TRY1". This is the bug you found.

I just made the step for converting unknown characters to '.' remember which
ones were real '.'s and which ones are converted characters, so "TRY1."
stays "TRY1." but "file (9)" becomes "file..9" still.

I'm not sure when the next KEGS release will be. If you want an immediate
fix and can recompile, edit dynapro.c around lines 1369-1372 to remove these
lines:

while((outpos >= 0) && (g_dynapro_path_buf[outpos-1] == '.')) {
outpos--;
g_dynapro_path_buf[outpos] = 0;
}

This the code removing the trailing '.' from the end of the filename, and
it's what's causing your problem. Without this code, native name "file (9)"
will become "file..9.", but that's not really a problem.

Kent

Re: KEGS' DynaPro feature drops trailing periods in filenames.

<t8c6qk$d2h$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=726&group=comp.emulators.apple2#726

  copy link   Newsgroups: comp.emulators.apple2
Path: i2pn2.org!i2pn.org!aioe.org!1kzjxob1apDgcOKlV0dflQ.user.46.165.242.75.POSTED!not-for-mail
From: bpatrie@bellsouth.spamisicky.net (Brian Patrie)
Newsgroups: comp.emulators.apple2
Subject: Re: KEGS' DynaPro feature drops trailing periods in filenames.
Date: Wed, 15 Jun 2022 03:55:48 -0500
Organization: an elaborate system of piles and accidents
Message-ID: <t8c6qk$d2h$1@gioia.aioe.org>
References: <t7rugd$h9l$1@gioia.aioe.org> <t87hfr$jug$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="13393"; posting-host="1kzjxob1apDgcOKlV0dflQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Brian Patrie - Wed, 15 Jun 2022 08:55 UTC

Kent Dickey wrote:
> If you want an immediate fix and can recompile, edit dynapro.c
> around lines 1369-1372 to remove these lines:
>
> while((outpos >= 0) && (g_dynapro_path_buf[outpos-1] == '.')) {
> outpos--;
> g_dynapro_path_buf[outpos] = 0;
> }
>
> This the code removing the trailing '.' from the end of the
> filename, and it's what's causing your problem. Without this
> code, native name "file (9)" will become "file..9.", but that's
> not really a problem.

Excellent! Thanks! :)
And, of course, i named the modified version "xkegs-1.16." ;)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor