Topic: Incorrect locale Date format (1 of 22), Read 30 times
Conf: Installation, Configuration
From: Manuel Diaz
Date: Friday, May 07, 2004 06:06 PM

I have my Windows locale Date format set as yyyy-mm-dd. Inserting Date in Vedit gives mm/dd/yyyy (?)

Using Win2K Pro SP4, Vedit 6.12.1 (Date format, 0; Date separator, 45)

 


Topic: Re: Incorrect locale Date format (2 of 22), Read 24 times
Conf: Installation, Configuration
From: Ted Green
Date: Friday, May 07, 2004 06:47 PM

At 06:06 PM 5/7/2004, you wrote:
>From: "Manuel Diaz"
>
>I have my Windows locale Date format set as yyyy-mm-dd. Inserting Date in Vedit gives mm/dd/yyyy (?)
>
>Using Win2K Pro SP4, Vedit 6.12.1

What is the date of the VEDIT version?
I think it was fixed in the 04-May-2004 release; since these are still
beta versions, the date is important.

Ted.

 


Topic: Re: Incorrect locale Date format (4 of 22), Read 23 times
Conf: Installation, Configuration
From: Manuel Diaz
Date: Saturday, May 08, 2004 06:44 AM

On 5/7/2004 6:47:55 PM, Ted Green wrote:
...
>>I have my Windows locale Date format set as yyyy-mm-dd. Inserting Date in Vedit gives mm/dd/yyyy (?)
>>
>>Using Win2K Pro SP4, Vedit 6.12.1
>
>What is the date of the VEDIT
>version?
>I think it was fixed in the
>04-May-2004 release; since
>these are still
>beta versions, the date is
>important.

Tested in versions 3/7/04 and 5/7/04 using {User}, Insert date and time.

 


Topic: Re: Incorrect locale Date format (5 of 22), Read 22 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Saturday, May 08, 2004 08:58 AM

Manuel:

On Sat, 08 May 2004 06:44:00 -0400, you wrote:

>On 5/7/2004 6:47:55 PM, Ted Green wrote:
>...
>>>I have my Windows locale Date format set as yyyy-mm-dd. Inserting Date in
>Vedit gives mm/dd/yyyy (?)
>>>
>>>Using Win2K Pro SP4, Vedit 6.12.1
>>
>Tested in versions 3/7/04 and 5/7/04 using {User}, Insert date and time.

Please have a look at your USER.MNU file
(probably in C:\vedit or C:\vedit\user-mac)

There are the following lines for that {User} menu entry:

1 +128
Insert date and time
Out_Ins() Date(NOCR) Type_Space(2) Time(NOCR)
Type_Space(2) Out_Ins(CLEAR)


I assume that the entry in your file is modified.


(Or post the file here to let us have a look together.)


Christian

 


Topic: Re: Incorrect locale Date format (6 of 22), Read 23 times
Conf: Installation, Configuration
From: Manuel Diaz
Date: Sunday, May 09, 2004 07:00 AM

On 5/8/2004 8:58:49 AM, Christian Ziemski wrote:

>>...
>>>>I have my Windows locale Date format set as yyyy-mm-dd. Inserting Date in
>>Vedit gives mm/dd/yyyy (?)
>>>>
>>>>Using Win2K Pro SP4, Vedit 6.12.1
>>>
>>Tested in versions 3/7/04 and 5/7/04 using {User}, Insert date and time.
>
>Please have a look at your USER.MNU file
>(probably in C:\vedit or
>C:\vedit\user-mac)
>
>There are the following lines for that
>{User} menu entry:
>
>1 +128
>Insert date and time
>Out_Ins() Date(NOCR) Type_Space(2)
>Time(NOCR)
> Type_Space(2) Out_Ins(CLEAR)
>
>
>I assume that the entry in your file is
>modified.
>
>
>(Or post the file here to let us have a
>look together.)

I've got this:

1 +128
Insert date and time
Out_Ins() Date(NOCR) Type_Space(2) Time(NOCR) Type_Space(2) Out_Ins(CLEAR)

I'm using english(US) Win2k Pro, with spanish keyboard layout and (ISO) date format as described.

Thank you.

 


Topic: Re: Incorrect locale Date format (7 of 22), Read 23 times, 1 File Attachment
Conf: Installation, Configuration
From: Christian Ziemski
Date: Sunday, May 09, 2004 07:45 AM

On Sun, 09 May 2004 07:00:00 -0400, Manuel Diaz wrote:

>I've got this:
>
>1 +128
>Insert date and time
>Out_Ins() Date(NOCR) Type_Space(2) Time(NOCR) Type_Space(2) Out_Ins(CLEAR)

Hmm, that is the original entry...
Not modified.

Then another try:
To help finding the exact reason please execute the attached macro.

It lists the several Date() formats in the current buffer.
Perhaps that shows the problem?


Christian

 
CHECKDATE.VDM (1KB)

 


Topic: Re: Incorrect locale Date format (8 of 22), Read 22 times
Conf: Installation, Configuration
From: Manuel Diaz
Date: Sunday, May 09, 2004 03:23 PM

On 5/9/2004 7:45:37 AM, Christian Ziemski wrote:

...
>>Insert date and time
>>Out_Ins() Date(NOCR) Type_Space(2) Time(NOCR) Type_Space(2) Out_Ins(CLEAR)
>
...
>
>Then another try:
>To help finding the exact reason please
>execute the attached macro.
>
>It lists the several Date() formats in
>the current buffer.
>Perhaps that shows the problem?
>

Result:

Config(U_DATE_FORM) = 0
Config(U_DATE_SEP) = 45
05/09/2004 uses Config(U_DATE_FORM) and Config(U_DATE_SEP)
05/09/2004 uses current system date (country-specific format)
05-09-2004 should be mm-dd-yyyy
09-05-2004 should be dd-mm-yyyy
2004-05-09 should be yyyy-mm-dd

 


Topic: Re: Incorrect locale Date format (9 of 22), Read 21 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Sunday, May 09, 2004 03:56 PM

Manuel:

On Sun, 09 May 2004 15:23:00 -0400, you wrote:

>Result:
>
>Config(U_DATE_FORM) = 0
>Config(U_DATE_SEP) = 45
>05/09/2004 uses Config(U_DATE_FORM) and Config(U_DATE_SEP)
>05/09/2004 uses current system date (country-specific format)
>05-09-2004 should be mm-dd-yyyy
>09-05-2004 should be dd-mm-yyyy
>2004-05-09 should be yyyy-mm-dd

O.k., even after your tests I don't have an explanation for that
error, sorry.

But the above results may help Ted to solve the problem.


For easier reference here are the details again:

//-------------------------------------
>Windows locale Date format set as yyyy-mm-dd.
>Inserting Date in Vedit gives mm/dd/yyyy (?)
>Using Win2K Pro SP4, Vedit 6.12.1 (Date format, 0; Date separator, 45)
//-------------------------------------
And the macro that gave the above results:
//-------------------------------------
Out_Ins()
Message("Config(U_DATE_FORM) = ")
.Config(U_DATE_FORM)
Message("Config(U_DATE_SEP) = ")
.Config(U_DATE_SEP)
Date(NOCR+NOMSG)
Message(" uses Config(U_DATE_FORM) and Config(U_DATE_SEP)\n")
Date(LOCAL+NOCR+NOMSG)
Message(" uses current system date (country-specific format)\n")
Date(NORMAL+NOCR+NOMSG)
Message(" should be mm-dd-yyyy\n")
Date(BEGIN+NOCR+NOMSG)
Message(" should be dd-mm-yyyy\n")
Date(REVERSE+NOCR+NOMSG)
Message(" should be yyyy-mm-dd\n")
Out_Ins(CLEAR)
//-------------------------------------


Christian

 


Topic: Re: Incorrect locale Date format (10 of 22), Read 25 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Sunday, May 09, 2004 05:25 PM

For further tests with the Date() command and the
configuration commands

Config(U_DATE_FORM, ...)
Config(U_DATE_SEP, ...)

I enhanced the diagnosis macro a bit:

http://ziemski.privat.t-online.de/vedit/macros/checkdate.vdm

Example output (shortened to be displayed here):


Config(U_DATE_FORM) = 0
Config(U_DATE_SEP) = 45
Config(U_DATE_SEP) = '-'
Date() 09.05.2004 should be as defined in Windows (and ...
Date(LOCAL) 09.05.2004 (uses ...
Date(NORMAL) 05-09-2004 should be mm-dd-yyyy ; (uses ...
Date(BEGIN) 09-05-2004 should be dd-mm-yyyy ; (uses ...
Date(REVERSE) 2004-05-09 should be yyyy-mm-dd ; (uses ...



Christian

 


Topic: Re: Incorrect locale Date format (11 of 22), Read 27 times
Conf: Installation, Configuration
From: Ian Binnie
Date: Sunday, May 09, 2004 08:10 PM

On 5/9/2004 5:25:43 PM, Christian Ziemski wrote:
>For further tests with the
>Date() command and the
>configuration commands
>

I also have a problem with LOCAL

VEDIT (32-Bit) Deluxe Ver. 6.12.1 05/03/04
Config(U_DATE_FORM) = 2
Date() 10-05-2004 should be dd-mm-yyyy ; (
Date(LOCAL) 05/10/2004 (

I posted an issue with File_Stamp_String()
(http://webboard.vedit.com/read?17584,29)

I am using Windows XP Pro SP1, System Short Date Format is set to "d/MM/yyyy", Location to "Australia"

I had not noticed this as I have set Config(U_DATE_FORM) to "2"

 


Topic: Re: Incorrect locale Date format (14 of 22), Read 24 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Monday, May 10, 2004 03:36 AM

On 5/9/2004 8:10:44 PM, Ian Binnie wrote:

>I also have a problem with LOCAL
>
>VEDIT (32-Bit) Deluxe Ver. 6.12.1
>05/03/04
>Config(U_DATE_FORM) = 2
>Date() 10-05-2004 should be
>dd-mm-yyyy ; (
>Date(LOCAL) 05/10/2004
>
>I am using Windows XP Pro SP1, System
>Short Date Format is set to "d/MM/yyyy",
>Location to "Australia"
>
>I had not noticed this as I have set
>Config(U_DATE_FORM) to "2"

Strange, strange.

On my box all works fine:


Operating System: W2K-SP4 (de)
Short date format: TT.MM.JJJJ ( = DD.MM.YYYY)

===============================================================================
VEDIT (32-Bit) Deluxe Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 0 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 45 = '-'

Date() 10.05.2004 # should be like LOCAL ; (Config(U_DATE_FORM)=0 : country specific
Date(LOCAL) 10.05.2004 # (uses current system date (country-specific format))
Date(NORMAL) 05-10-2004 # should be mm-dd-yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10-05-2004 # should be dd-mm-yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004-05-10 # should be yyyy-mm-dd ; (Config(U_DATE_SEP)

-------------------------------------------------------------------------------
VEDIT (32-Bit) Deluxe Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 3 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 33 = '!'

Date() 2004!05!10 # should be yyyy!mm!dd ; (Config(U_DATE_FORM)=3; Config(U_DATE_SEP))
Date(LOCAL) 10.05.2004 # (uses current system date (country-specific format))
Date(NORMAL) 05!10!2004 # should be mm!dd!yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10!05!2004 # should be dd!mm!yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004!05!10 # should be yyyy!mm!dd ; (Config(U_DATE_SEP)



===============================================================================
VEDIT Pro (64-Bit) Trial Beta Test Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 0 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 45 = '-'

Date() 10.05.2004 # should be like LOCAL ; (Config(U_DATE_FORM)=0 : country specific
Date(LOCAL) 10.05.2004 # (uses current system date (country-specific format))
Date(NORMAL) 05-10-2004 # should be mm-dd-yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10-05-2004 # should be dd-mm-yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004-05-10 # should be yyyy-mm-dd ; (Config(U_DATE_SEP)

-------------------------------------------------------------------------------
VEDIT Pro (64-Bit) Trial Beta Test Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 3 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 33 = '!'

Date() 2004!05!10 # should be yyyy!mm!dd ; (Config(U_DATE_FORM)=3; Config(U_DATE_SEP))
Date(LOCAL) 10.05.2004 # (uses current system date (country-specific format))
Date(NORMAL) 05!10!2004 # should be mm!dd!yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10!05!2004 # should be dd!mm!yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004!05!10 # should be yyyy!mm!dd ; (Config(U_DATE_SEP)


Created by: http://ziemski.privat.t-online.de/vedit/macros/checkdate.vdm

Christian

 


Topic: Re: Incorrect locale Date format (17 of 22), Read 21 times
Conf: Installation, Configuration
From: Ted Green
Date: Monday, May 10, 2004 10:25 AM

At 03:33 AM 5/10/2004, you wrote:

>Strange, strange.
>
>On my box all works fine:

With too many other priorities, I cannot pursue this further for several months. Sorry.

Ted.

 


Topic: Re: Incorrect locale Date format (20 of 22), Read 17 times
Conf: Installation, Configuration
From: Ian Binnie
Date: Saturday, May 22, 2004 08:44 PM

On 5/10/2004 10:25:12 AM, Ted Green wrote:
>
>With too many other
>priorities, I cannot pursue
>this further for several
>months. Sorry.
>
>Ted.
>
I have discovered the reason for the differences in the "Date(LOCAL)" format display.

"Language for non-Unicode programs" was set to "English (United States)" i.e. OEM Code Page 437

Changing this to "English (Australian)" OEM Code Page 850 fixed the problem. See samples below.

I do not know why, as this setting should not influence Regional Options. Microsoft Help states:- "Open Regional and Language Options in Control Panel. On the Advanced tab, under Language for non-Unicode programs, click the language version of non-Unicode programs that will be used."

I only discovered this use the Code_Page() macro in the latest Vedit, which reported I was using 437.

API GetLocaleInfo( LOCALE_USER_DEFAULT, LOCALE_IDEFAULTCODEPAGE, ... indicated 850.

This should return the "Original equipment manufacturer (OEM) code page associated with the country." This may be true for Australia, but this is not the Default OEM Code Page reported by chcp etc.

I wonder how Ted determines Code Page?




-------------------------------------------
VEDIT (32-Bit) Deluxe Ver. 6.12.1 05/19/04
Windows-Version: 501
Code Page: 437

Config(U_DATE_FORM) = 2
Config(U_DATE_SEP) = 45 = '-'

Date() 23-05-2004
Date(LOCAL) 05/23/2004
Date(NORMAL) 05-23-2004
Date(BEGIN) 23-05-2004
Date(REVERSE) 2004-05-23


-------------------------------------------
VEDIT (32-Bit) Deluxe Ver. 6.12.1 05/19/04
Windows-Version: 501
Code Page: 850

Config(U_DATE_FORM) = 2
Config(U_DATE_SEP) = 45 = '-'

Date() 23-05-2004
Date(LOCAL) 23/05/2004
Date(NORMAL) 05-23-2004
Date(BEGIN) 23-05-2004
Date(REVERSE) 2004-05-23

 


Topic: Re: Incorrect locale Date format (21 of 22), Read 20 times
Conf: Installation, Configuration
From: Ted Green
Date: Monday, May 24, 2004 06:26 PM

At 08:44 PM 5/22/2004, you wrote:
>I only discovered this use the Code_Page() macro in the latest Vedit, which reported I was using 437.
>
>API GetLocaleInfo( LOCALE_USER_DEFAULT, LOCALE_IDEFAULTCODEPAGE, ... indicated 850.
>
>This should return the "Original equipment manufacturer (OEM) code page associated with the country." This may be true for Australia, but this is not the Default OEM Code Page reported by chcp etc.
>
>I wonder how Ted determines Code Page?

I simply use:

API GetOEMCP( void ) which returns the OEM code page

If you suggest it, I could use:

API GetOACP( void ) which returns the ANSI code page

However, from your description, it sounds like Windows assumes that
non-unicode programs are using the OEM code page.

Perhaps, I should implement the VEDIT Code_Page() options:

Code_Page Return OEM codepage
Code_Page(ANSI) Return ANSI codepage

----
BTW - When you tested the GetLocaleInfo(...) API, you probably compiled
it as a default unicode program; hence it returned 850.

Ted.

 


Topic: Re: Incorrect locale Date format (22 of 22), Read 20 times
Conf: Installation, Configuration
From: Ted Green
Date: Thursday, May 27, 2004 12:37 AM

At 08:44 PM 5/22/2004, you wrote:
>I wonder how Ted determines Code Page?

The new VEDIT 6.12.1 has an enhanced Code_Page() command:

Code_Page Returns the Window's current OEM "code page"; this typically
indicates the user's language, and how some fonts will
display special characters. The default OEM code page for the
US version of Windows is 437.

Code_Page(ANSI) returns the ANSI "code page"; the US version
of Windows defaults to 1252.

Hopefully this will allow better access to the correct Code Page value.

Ted.

 


Topic: Re: Incorrect locale Date format (18 of 22), Read 21 times
Conf: Installation, Configuration
From: Manuel Diaz
Date: Monday, May 10, 2004 12:09 PM

On 5/10/2004 3:36:02 AM, Christian Ziemski wrote:

...
>
>On my box all works fine:
>
...
>
>Created by:
>http://ziemski.privat.t-online.de/vedit/
>macros/checkdate.vdm
>


New macro results, locale= yyyy-MM-dd:

-------------------------------------------------------------------------------
VEDIT (32-Bit) Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 0 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 45 = '-'

Date() 05/10/2004 # should be like LOCAL ; (Config(U_DATE_FORM)=0 : country specific
Date(LOCAL) 05/10/2004 # (uses current system date (country-specific format))
Date(NORMAL) 05-10-2004 # should be mm-dd-yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10-05-2004 # should be dd-mm-yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004-05-10 # should be yyyy-mm-dd ; (Config(U_DATE_SEP)


After changing locale to yyyy.MM.dd:

-------------------------------------------------------------------------------
VEDIT (32-Bit) Ver. 6.12.1 05/07/04
Windows-Version: 500

Config(U_DATE_FORM) = 0 (0=country-specific ; 1=mm-dd-yyyy ; 2=dd-mm-yyyy ; 3=yyyy-mm-dd)
Config(U_DATE_SEP) = 45 = '-'

Date() 05/10/2004 # should be like LOCAL ; (Config(U_DATE_FORM)=0 : country specific
Date(LOCAL) 05/10/2004 # (uses current system date (country-specific format))
Date(NORMAL) 05-10-2004 # should be mm-dd-yyyy ; (Config(U_DATE_SEP)
Date(BEGIN) 10-05-2004 # should be dd-mm-yyyy ; (Config(U_DATE_SEP)
Date(REVERSE) 2004-05-10 # should be yyyy-mm-dd ; (Config(U_DATE_SEP)


Same output after setting locale to dd-MM-yy.

Well, I think that's all for now. I'll set Date format to 3 8-)

Thanks again.

 


Topic: Re: Incorrect locale Date format (19 of 22), Read 21 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Monday, May 10, 2004 04:07 PM

On Mon, 10 May 2004 00:09:00 -0400, Manuel Diaz wrote:

>New macro results, locale= yyyy-MM-dd:
>
>[still wrong output]

The same effect as for Ian Binnie...

>Well, I think that's all for now. I'll set Date format to 3 8-)
>
>Thanks again.

You are welcome. I would be happier if we had solved the riddle.

But Config(U_Date_Form) > 0 of course helps!


Christian

 


Topic: Re: Incorrect locale Date format (15 of 22), Read 21 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Monday, May 10, 2004 05:50 AM

On 5/9/2004 8:10:44 PM, Ian Binnie wrote:
>
>I am using Windows XP Pro SP1, System
>Short Date Format is set to "d/MM/yyyy",
>Location to "Australia"

A wild guess:

In my German W2k I'm not allowed to specify lower letters in the date format. It would look like DD/MM/YYYY.

Perhaps your lower letters are confusing VEDIT?


Christian

 


Topic: Re: Incorrect locale Date format (16 of 22), Read 21 times
Conf: Installation, Configuration
From: Ian Binnie
Date: Monday, May 10, 2004 06:17 AM

On 5/10/2004 5:50:06 AM, Christian Ziemski wrote:
>On 5/9/2004 8:10:44 PM, Ian Binnie
>wrote:
>>
>>I am using Windows XP Pro SP1, System
>>Short Date Format is set to "d/MM/yyyy",
>>Location to "Australia"
>
>A wild guess:
>
>In my German W2k I'm not allowed to
>specify lower letters in the date
>format. It would look like DD/MM/YYYY.
>
>Perhaps your lower letters are confusing
>VEDIT?
>
>
>Christian



I did not select "d/MM/yyyy", this was the default, and all the options available are similar.

I tried to set "D/MM/yyyy"", but this was changed to "d/MM/yyyy"

 


Topic: Re: Incorrect locale Date format (12 of 22), Read 25 times
Conf: Installation, Configuration
From: Ian Binnie
Date: Sunday, May 09, 2004 08:22 PM

PS I tried VEDIT Pro (64-Bit) Trial Beta Test Ver. 6.12.1 05/03/04
Config(U_DATE_FORM) = 0
Date() 05/10/2004 should be as defined in Windows (
Date(LOCAL) 05/10/2004 (uses

seems OK here

 


Topic: Re: Incorrect locale Date format (13 of 22), Read 23 times
Conf: Installation, Configuration
From: Ian Binnie
Date: Sunday, May 09, 2004 08:26 PM

On 5/9/2004 8:22:14 PM, Ian Binnie wrote:
>PS I tried VEDIT Pro (64-Bit)
>Trial Beta Test Ver. 6.12.1
>05/03/04
>Config(U_DATE_FORM) = 0
>Date() 05/10/2004
>should be as defined in
>Windows (
>Date(LOCAL) 05/10/2004
>(uses
>
>Correction is NOT OK

 


Topic: Re: Incorrect locale Date format (3 of 22), Read 22 times
Conf: Installation, Configuration
From: Christian Ziemski
Date: Saturday, May 08, 2004 03:28 AM

On Fri, 07 May 2004 18:06:00 -0400, Manuel Diaz wrote:

>I have my Windows locale Date format set as yyyy-mm-dd.
>Inserting Date in Vedit gives mm/dd/yyyy (?)

No problems here.
Date() is working as expected with all options.

(W2K-SP4-de, Vedit 6.12.1 05/07/04)

Christian