[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: XyWrite anomaly - Ubuntu issue?



Reply to note from Raphael Tennenbaum  Sun,
01 Nov 2009 17:11:29 -0500

Rafe:

> a file containing ≪DAyy-mm-dd≫
>
> heretofore, the value produced came out
>
> 09-11-01
>
> now for some reason on both my Ubuntu desktop box and the
> laptop it returns
>
> 109-11-01
>
> the XP machine returns the correct value.

I can reproduce that here (XP Pro SP3, Xy v4.018)

> if I can't solve it, perhaps someone can design a more elegant
> XPL program than mine to generate a file named with today's
> date in the form
>
> 09-11-01.txt

I'm not sure it would make a difference on your system, but the
standard way to do that is (in pseudo-code):

+".txt">;*;
BX exist Q2 ;*;
Q2 ;*;
BX ca Q2 

Same, in DECODE-able XPL:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX01,{<}VA$DAyy-mm-dd{>}+".txt"{>};*;[cr|lf][BX_]exist {<}
PV01{>}[Q2_];*;[cr|lf]{<}IF{<}ER{>}{>}[BX_]ne {<}PV01{>}[Q2_]
{<}EX{>}{<}EI{>};*;[cr|lf][BX_]ca {<}PV01{>}[Q2_]{<}EX{>}[cr|
lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx