Re: [Freedos-user] COUNTRY.SYS settings
On Thursday 28 June 2007 13:54, Eduardo Casino wrote: > Source code for COUNTRY.SYS is written in nasm assembler. Just get the file > from: > http://freedos.svn.sourceforge.net/viewvc/*checkout*/freedos/kernel/branche >s/UNSTABLE/kernel/country.asm?revision=1261 > > Then, use nasm to assemble: > nasm -o country.sys country.asm > > And you're done. Thank you, Eduardo! That's exactly the answer I was waiting for! I done what you said, and got what I wanted. It took me no more than 30s :-) By the way, it would be a nice thing to have a tool in FreeDOS which gives the possibility of an easy changing of those COUNTRY settings (recompiling the COUNTRY.SYS file, even if its trivial, shouldn't be considered as an "easy way")... All operating systems I know have such thing... Bye! Mateusz Viste - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Source code for COUNTRY.SYS is written in nasm assembler. Just get the file from: http://freedos.svn.sourceforge.net/viewvc/*checkout*/freedos/kernel/branches/UNSTABLE/kernel/country.asm?revision=1261 Then, use nasm to assemble: nasm -o country.sys country.asm And you're done. Eduardo. -Mensaje original- De: "Aitor Santamaría" <[EMAIL PROTECTED]> I ignore it, perhaps Eduardo (developer of NLSFUNC) has some tools for creating/editing such files, or Eric or Henrique have some ideas? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Hello Tom, Actually they aren't. The decimal separator is arguably ' (see below), but the thousand separator is universally accepted (and known) as . in Spain (and NEVER the ,). As for the decimal separator, there's a typical controversy between "official" and "widespread". The official symbol is ' (as stated in official national public agencies, I can't remember if the "Spanish language academy" or by scientific (physics) academies). However, few people actually uses it, or what's more, few people would ever know (and what's worse accept it) as decimal separator. Although I myself remember being taught to use ' in School, the common belief between Spaniards is that the decimal separator is the , (and NEVER the .). Even in Microsoft Windows and other programs (MS-Excel), they have by default , (so perhaps a reason to change our COUNTRY setting, although it was myself who suggested to use the official ' ). Just for an extra bit, there's another similar discussion with the capital vowels and diacritics. A very old rule stated that the capital letters would NEVER accept a diacritic sign (thus, ÁÉÍÓÚÜ should NEVER be used, you write AEIOUU as the capitals for áéíóúü). However, the Spanish language academy changed their mind (I think about three decades ago) as they judged that not using them may lead to ambiguous or illegible words. However, not many people knows it, and there are quite some that haven't bothered to check it and will swear that you MUST never used ÁÉÍÓÚÜ. Aitor 2007/6/27, Tom Ehlert <[EMAIL PROTECTED]>: > > > > I've seen one bug right now, shouldn't Spain be "34"? > > according to http://www.vfrazee.com/ms-dos/6.22/help/country.htm - yes > unfortunately I took the 33 from a VERY old kernel35, the current has > a 34 > > but still > >>".",/* ',' # Thousand's separator */ > >>"'",/* Decimal point - by aitor */ > > look swapped > > Tom > > > > > (Can't remember if the DOS country codes are the ones used in > > telephony, but in such case, it's definitely 34). > > > Aitor > > > 2007/6/27, Tom Ehlert <[EMAIL PROTECTED]>: > >> BTW: > >> country=33 (spain) would be perfekt, it it wasn't buggy > >> (1000's/decimal point swapped) > >> > >> /* Spain */ ,{ > >>33, /* = W1 W437 # Country ID & Codepage */ > >>850, > >>_DATE_DMY, /*Date format: 0/1/2: > >> U.S.A./Europe/Japan */ > >>"EUR", /* '$' ,'EUR' */ > >>".",/* ',' # Thousand's separator */ > >>"'",/* Decimal point - by aitor */ > >>"-",/* '-' DateSeparator */ > >>":",/* ':' TimeSeparator */ > >>0, /* = 0 # Currency format (bit array) */ > >>2, /* = 2 # Currency precision */ > >>_TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > >> } > >> > >> Tom > >> > >> > >> > >> >> Is there any way to set up manually all configurations for the > >> >> COUTRY.SYS > >> >> settings? I mean, how could I decide exactly which character I want to > >> >> use > >> >> for decimals, which for hundreds separator, how to display the date > >> >> etc...? > >> > >> >> I know that I can choose between various countries standards, but none > >> >> of them > >> >> fills all my needs. > >> > >> >> What I would like to have is: > >> >> Date format: dd.mm. > >> >> Time format: hh:mm > >> >> Decimal separator: " . " > >> >> Hundreds separator: " ' " > >> >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) > >> > >> > enter into CONFIG.SYS: > >> > country=49 (german) > >> > >> > gets pretty close to what you want (even for the stable kernel), > >> > >> > >> > see the other possibilities below, hard compiled into the kernel. > >> > >> > the currency is probably irrelevant, no program ever cared > >> > >> > Tom > >> > >> > >> > >> > FIXED country settings: > >> > >> > struct CountrySpecificInfo specificCountriesSupported[] = { > >> > > >> > /* US */ { > >> > 1, /* = W1 W437 # Country ID & Codepage > >> > */ > >> > 437, > >> > _DATE_MDY, /*Date format: 0/1/2: > >> > U.S.A./Europe/Japan */ > >> > "$",/* '$' ,'EUR' */ > >> > ",",/* ',' # Thousand's separator */ > >> > ".",/* '.'# Decimal point */ > >> > "/",/* '-' DateSeparator */ > >> > ":",/* ':' TimeSeparator */ > >> > 0, /* = 0 # Currency format (bit array) */ > >> > 2, /* = 2 # Currency precision*/ > >> > _TIME_12/* = 0 # time format: 0/1: 12/24 houres > >> > */ > >> > } > >> > >
Re: [Freedos-user] COUNTRY.SYS settings
> I've seen one bug right now, shouldn't Spain be "34"? according to http://www.vfrazee.com/ms-dos/6.22/help/country.htm - yes unfortunately I took the 33 from a VERY old kernel35, the current has a 34 but still >>".",/* ',' # Thousand's separator */ >>"'",/* Decimal point - by aitor */ look swapped Tom > (Can't remember if the DOS country codes are the ones used in > telephony, but in such case, it's definitely 34). > Aitor > 2007/6/27, Tom Ehlert <[EMAIL PROTECTED]>: >> BTW: >> country=33 (spain) would be perfekt, it it wasn't buggy >> (1000's/decimal point swapped) >> >> /* Spain */ ,{ >>33, /* = W1 W437 # Country ID & Codepage */ >>850, >>_DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan >> */ >>"EUR", /* '$' ,'EUR' */ >>".",/* ',' # Thousand's separator */ >>"'",/* Decimal point - by aitor */ >>"-",/* '-' DateSeparator */ >>":",/* ':' TimeSeparator */ >>0, /* = 0 # Currency format (bit array) */ >>2, /* = 2 # Currency precision */ >>_TIME_24/* = 0 # time format: 0/1: 12/24 houres */ >> } >> >> Tom >> >> >> >> >> Is there any way to set up manually all configurations for the COUTRY.SYS >> >> settings? I mean, how could I decide exactly which character I want to use >> >> for decimals, which for hundreds separator, how to display the date >> >> etc...? >> >> >> I know that I can choose between various countries standards, but none of >> >> them >> >> fills all my needs. >> >> >> What I would like to have is: >> >> Date format: dd.mm. >> >> Time format: hh:mm >> >> Decimal separator: " . " >> >> Hundreds separator: " ' " >> >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) >> >> > enter into CONFIG.SYS: >> > country=49 (german) >> >> > gets pretty close to what you want (even for the stable kernel), >> >> >> > see the other possibilities below, hard compiled into the kernel. >> >> > the currency is probably irrelevant, no program ever cared >> >> > Tom >> >> >> >> > FIXED country settings: >> >> > struct CountrySpecificInfo specificCountriesSupported[] = { >> > >> > /* US */ { >> > 1, /* = W1 W437 # Country ID & Codepage */ >> > 437, >> > _DATE_MDY, /*Date format: 0/1/2: >> > U.S.A./Europe/Japan */ >> > "$",/* '$' ,'EUR' */ >> > ",",/* ',' # Thousand's separator */ >> > ".",/* '.'# Decimal point */ >> > "/",/* '-' DateSeparator */ >> > ":",/* ':' TimeSeparator */ >> > 0, /* = 0 # Currency format (bit array) */ >> > 2, /* = 2 # Currency precision*/ >> > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ >> > } >> > >> > /* Canadian French */ ,{ >> > 2, /* = W1 W437 # Country ID & Codepage */ >> > 863, >> > _DATE_YMD, /*Date format: 0/1/2: >> > U.S.A./Europe/Japan */ >> > "$",/* '$' ,'EUR' */ >> > ",",/* ',' # Thousand's separator */ >> > ".",/* '.'# Decimal point */ >> > "-",/* '-' DateSeparator */ >> > ":",/* ':' TimeSeparator */ >> > 0, /* = 0 # Currency format (bit array) */ >> > 2, /* = 2 # Currency precision*/ >> > _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ >> > } >> > >> > /* Latin America */ ,{ >> > 3, /* = W1 W437 # Country ID & Codepage */ >> > 850, >> > _DATE_MDY, /*Date format: 0/1/2: >> > U.S.A./Europe/Japan */ >> > "$",/* '$' ,'EUR' */ >> > ",",/* ',' # Thousand's separator */ >> > ".",/* '.'# Decimal point */ >> > "/",/* '-' DateSeparator */ >> > ":",/* ':' TimeSeparator */ >> > 0, /* = 0 # Currency format (bit array) */ >> > 2, /* = 2 # Currency precision*/ >> > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ >> > } >> > >> > /* Russia - by arkady */ ,{ >> > 7, /* = W1 W437 # Country ID & Codepage */ >> > 866, >> > _DATE_DMY, /*
Re: [Freedos-user] COUNTRY.SYS settings
Hello Mateusz, > Is there any way to set up manually all configurations for the COUTRY.SYS > settings? I mean, how could I decide exactly which character I want to use > for decimals, which for hundreds separator, how to display the date etc...? > I know that I can choose between various countries standards, but none of them > fills all my needs. > What I would like to have is: > Date format: dd.mm. > Time format: hh:mm > Decimal separator: " . " > Hundreds separator: " ' " > Currency: € (I don't know if FreeDOS is storing the currency anywhere) enter into CONFIG.SYS: country=49 (german) gets pretty close to what you want (even for the stable kernel), see the other possibilities below, hard compiled into the kernel. the currency is probably irrelevant, no program ever cared Tom FIXED country settings: struct CountrySpecificInfo specificCountriesSupported[] = { /* US */ { 1, /* = W1 W437 # Country ID & Codepage */ 437, _DATE_MDY, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "$",/* '$' ,'EUR' */ ",",/* ',' # Thousand's separator */ ".",/* '.'# Decimal point*/ "/",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 0, /* = 0 # Currency format (bit array) */ 2, /* = 2 # Currency precision */ _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ } /* Canadian French */ ,{ 2, /* = W1 W437 # Country ID & Codepage */ 863, _DATE_YMD, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "$",/* '$' ,'EUR' */ ",",/* ',' # Thousand's separator */ ".",/* '.'# Decimal point*/ "-",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 0, /* = 0 # Currency format (bit array) */ 2, /* = 2 # Currency precision */ _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ } /* Latin America */ ,{ 3, /* = W1 W437 # Country ID & Codepage */ 850, _DATE_MDY, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "$",/* '$' ,'EUR' */ ",",/* ',' # Thousand's separator */ ".",/* '.'# Decimal point*/ "/",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 0, /* = 0 # Currency format (bit array) */ 2, /* = 2 # Currency precision */ _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ } /* Russia - by arkady */ ,{ 7, /* = W1 W437 # Country ID & Codepage */ 866, _DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "RUB", /* '$' ,'EUR' */ /* should be "\xE0", but as no codepage support exists (yet), better to leave it as 'Rubels' */ " ",/* ',' # Thousand's separator */ ",",/* '.'# Decimal point*/ ".",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 3, /* Currency format : currency follows, after blank */ 2, /* = 2 # Currency precision */ _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ } /* DUTCH */ ,{ 31, /* = W1 W437 # Country ID & Codepage */ 850, _DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "EUR", /* '$' ,'EUR' */ ".",/* ',' # Thousand's separator */ ",",/* '.'# Decimal point*/ "-",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 0, /* = 0 # Currency format (bit array) */ 2, /* = 2 # Currency precision */ _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ } /* Belgium */ ,{ 32, /* = W1 W437 # Country ID & Codepage */ 850, _DATE_DMY, /*Date format: 0/
Re: [Freedos-user] COUNTRY.SYS settings
Hi Aitor, Tom, Mateusz, to continue this thread with somewhat shorter mails... ;-) What Mateusz wanted is: > dd.mm. hh:mm:ss 1'234.56 Country 41, Switzerland, is pretty close: > dd.mm. hh,mm,ss 1'234.56 Country 33, France, would use: > dd.mm. hh:mm:ss 1 234,56 In codepage 858, France will be with Euro sign. Otherwise, the string EUR will be used. Indeed the stable kernel contains built-in country definitions, which you can change by recompiling it. With the unstable kernel (and it does have bugs, really...), you can use country.sys ... As far as I remember, you simply need the country.asm source code if you want to edit it - no special tools needed, just edit the source and "recompile" it. Of course country.sys is not really a program, it is a binary data file. But you still "compile" it. Eric - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
I've seen one bug right now, shouldn't Spain be "34"? (Can't remember if the DOS country codes are the ones used in telephony, but in such case, it's definitely 34). Aitor 2007/6/27, Tom Ehlert <[EMAIL PROTECTED]>: > BTW: > country=33 (spain) would be perfekt, it it wasn't buggy > (1000's/decimal point swapped) > > /* Spain */ ,{ >33, /* = W1 W437 # Country ID & Codepage */ >850, >_DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ >"EUR", /* '$' ,'EUR' */ >".",/* ',' # Thousand's separator */ >"'",/* Decimal point - by aitor */ >"-",/* '-' DateSeparator */ >":",/* ':' TimeSeparator */ >0, /* = 0 # Currency format (bit array) */ >2, /* = 2 # Currency precision */ >_TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > } > > Tom > > > > >> Is there any way to set up manually all configurations for the COUTRY.SYS > >> settings? I mean, how could I decide exactly which character I want to use > >> for decimals, which for hundreds separator, how to display the date etc...? > > >> I know that I can choose between various countries standards, but none of > >> them > >> fills all my needs. > > >> What I would like to have is: > >> Date format: dd.mm. > >> Time format: hh:mm > >> Decimal separator: " . " > >> Hundreds separator: " ' " > >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) > > > enter into CONFIG.SYS: > > country=49 (german) > > > gets pretty close to what you want (even for the stable kernel), > > > > see the other possibilities below, hard compiled into the kernel. > > > the currency is probably irrelevant, no program ever cared > > > Tom > > > > > FIXED country settings: > > > struct CountrySpecificInfo specificCountriesSupported[] = { > > > > /* US */ { > > 1, /* = W1 W437 # Country ID & Codepage */ > > 437, > > _DATE_MDY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "/",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Canadian French */ ,{ > > 2, /* = W1 W437 # Country ID & Codepage */ > > 863, > > _DATE_YMD, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "-",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Latin America */ ,{ > > 3, /* = W1 W437 # Country ID & Codepage */ > > 850, > > _DATE_MDY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "/",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Russia - by arkady */ ,{ > > 7, /* = W1 W437 # Country ID & Codepage */ > > 866, > > _DATE_DMY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "RUB", /* '$' ,'EUR' */ > > /* should be "\xE0", but as no codepage > >support exists (yet), better to leave it > > as 'Rubels' > > */ > > " ",/* ',' # Thousand's separator */ > > ",",/* '.'# Decimal
Re: [Freedos-user] COUNTRY.SYS settings
Looks ok to me, in what sense is it buggy? Aitor 2007/6/27, Tom Ehlert <[EMAIL PROTECTED]>: > BTW: > country=33 (spain) would be perfekt, it it wasn't buggy > (1000's/decimal point swapped) > > /* Spain */ ,{ >33, /* = W1 W437 # Country ID & Codepage */ >850, >_DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ >"EUR", /* '$' ,'EUR' */ >".",/* ',' # Thousand's separator */ >"'",/* Decimal point - by aitor */ >"-",/* '-' DateSeparator */ >":",/* ':' TimeSeparator */ >0, /* = 0 # Currency format (bit array) */ >2, /* = 2 # Currency precision */ >_TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > } > > Tom > > > > >> Is there any way to set up manually all configurations for the COUTRY.SYS > >> settings? I mean, how could I decide exactly which character I want to use > >> for decimals, which for hundreds separator, how to display the date etc...? > > >> I know that I can choose between various countries standards, but none of > >> them > >> fills all my needs. > > >> What I would like to have is: > >> Date format: dd.mm. > >> Time format: hh:mm > >> Decimal separator: " . " > >> Hundreds separator: " ' " > >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) > > > enter into CONFIG.SYS: > > country=49 (german) > > > gets pretty close to what you want (even for the stable kernel), > > > > see the other possibilities below, hard compiled into the kernel. > > > the currency is probably irrelevant, no program ever cared > > > Tom > > > > > FIXED country settings: > > > struct CountrySpecificInfo specificCountriesSupported[] = { > > > > /* US */ { > > 1, /* = W1 W437 # Country ID & Codepage */ > > 437, > > _DATE_MDY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "/",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Canadian French */ ,{ > > 2, /* = W1 W437 # Country ID & Codepage */ > > 863, > > _DATE_YMD, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "-",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Latin America */ ,{ > > 3, /* = W1 W437 # Country ID & Codepage */ > > 850, > > _DATE_MDY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "$",/* '$' ,'EUR' */ > > ",",/* ',' # Thousand's separator */ > > ".",/* '.'# Decimal point */ > > "/",/* '-' DateSeparator */ > > ":",/* ':' TimeSeparator */ > > 0, /* = 0 # Currency format (bit array) */ > > 2, /* = 2 # Currency precision*/ > > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > > } > > > > /* Russia - by arkady */ ,{ > > 7, /* = W1 W437 # Country ID & Codepage */ > > 866, > > _DATE_DMY, /*Date format: 0/1/2: > > U.S.A./Europe/Japan */ > > "RUB", /* '$' ,'EUR' */ > > /* should be "\xE0", but as no codepage > >support exists (yet), better to leave it > > as 'Rubels' > > */ > > " ",/* ',' # Thousand's separator */ > > ",",/* '.'# Decimal point */ > > ".",/* '-' DateSeparator */ > > ":",/* ':' Ti
Re: [Freedos-user] COUNTRY.SYS settings
BTW: country=33 (spain) would be perfekt, it it wasn't buggy (1000's/decimal point swapped) /* Spain */ ,{ 33, /* = W1 W437 # Country ID & Codepage */ 850, _DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan */ "EUR", /* '$' ,'EUR' */ ".",/* ',' # Thousand's separator */ "'",/* Decimal point - by aitor */ "-",/* '-' DateSeparator */ ":",/* ':' TimeSeparator */ 0, /* = 0 # Currency format (bit array) */ 2, /* = 2 # Currency precision */ _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ } Tom >> Is there any way to set up manually all configurations for the COUTRY.SYS >> settings? I mean, how could I decide exactly which character I want to use >> for decimals, which for hundreds separator, how to display the date etc...? >> I know that I can choose between various countries standards, but none of >> them >> fills all my needs. >> What I would like to have is: >> Date format: dd.mm. >> Time format: hh:mm >> Decimal separator: " . " >> Hundreds separator: " ' " >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) > enter into CONFIG.SYS: > country=49 (german) > gets pretty close to what you want (even for the stable kernel), > see the other possibilities below, hard compiled into the kernel. > the currency is probably irrelevant, no program ever cared > Tom > FIXED country settings: > struct CountrySpecificInfo specificCountriesSupported[] = { > > /* US */ { > 1, /* = W1 W437 # Country ID & Codepage */ > 437, > _DATE_MDY, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ > "$",/* '$' ,'EUR' */ > ",",/* ',' # Thousand's separator */ > ".",/* '.'# Decimal point */ > "/",/* '-' DateSeparator */ > ":",/* ':' TimeSeparator */ > 0, /* = 0 # Currency format (bit array) */ > 2, /* = 2 # Currency precision*/ > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > } > > /* Canadian French */ ,{ > 2, /* = W1 W437 # Country ID & Codepage */ > 863, > _DATE_YMD, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ > "$",/* '$' ,'EUR' */ > ",",/* ',' # Thousand's separator */ > ".",/* '.'# Decimal point */ > "-",/* '-' DateSeparator */ > ":",/* ':' TimeSeparator */ > 0, /* = 0 # Currency format (bit array) */ > 2, /* = 2 # Currency precision*/ > _TIME_24/* = 0 # time format: 0/1: 12/24 houres */ > } > > /* Latin America */ ,{ > 3, /* = W1 W437 # Country ID & Codepage */ > 850, > _DATE_MDY, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ > "$",/* '$' ,'EUR' */ > ",",/* ',' # Thousand's separator */ > ".",/* '.'# Decimal point */ > "/",/* '-' DateSeparator */ > ":",/* ':' TimeSeparator */ > 0, /* = 0 # Currency format (bit array) */ > 2, /* = 2 # Currency precision*/ > _TIME_12/* = 0 # time format: 0/1: 12/24 houres */ > } > > /* Russia - by arkady */ ,{ > 7, /* = W1 W437 # Country ID & Codepage */ > 866, > _DATE_DMY, /*Date format: 0/1/2: U.S.A./Europe/Japan > */ > "RUB", /* '$' ,'EUR' */ > /* should be "\xE0", but as no codepage >support exists (yet), better to leave it > as 'Rubels' > */ > " ",/* ',' # Thousand's separator */ > ",",/* '.'# Decimal point */ > ".",/* '-' DateSeparator */ > ":",/* ':' TimeSeparator */ > 3, /* Currency format : currency follows, after > blank */ > 2, /* = 2 # Currency precision*/ > _TIME_24/* =
Re: [Freedos-user] COUNTRY.SYS settings
I ignore it, perhaps Eduardo (developer of NLSFUNC) has some tools for creating/editing such files, or Eric or Henrique have some ideas? Aitor 2007/6/27, Mateusz Viste <[EMAIL PROTECTED]>: > On Wednesday 27 June 2007 19:54, Aitor Santamaría wrote: > > Once with the unstable kernel, you should create a "COUNTRY.SYS"-style > > file with the settings you want. > > I understand that the only way to make FreeDOS changes date/time format is to > choose a contry code, or make its own COUNTRY.SYS file, right? > Then how can I edit the COUNTRY.SYS? I tried to open it in a text editor, but > it seems to be a regular binary file. Have it to be compiled with something? > Where can I find any how-to about creating COUNTRY.SYS files? > > Best regards, > Mateusz Viste > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
On Wednesday 27 June 2007 19:54, Aitor Santamaría wrote: > Once with the unstable kernel, you should create a "COUNTRY.SYS"-style > file with the settings you want. I understand that the only way to make FreeDOS changes date/time format is to choose a contry code, or make its own COUNTRY.SYS file, right? Then how can I edit the COUNTRY.SYS? I tried to open it in a text editor, but it seems to be a regular binary file. Have it to be compiled with something? Where can I find any how-to about creating COUNTRY.SYS files? Best regards, Mateusz Viste - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Hello, Once with the unstable kernel, you should create a "COUNTRY.SYS"-style file with the settings you want. You can either load it at boot with COUNTRY= in CONFIG.SYS, or either load it "hot" with NLSFUNC (in this case, create your file in a way that the country code is the same as the country code in which your system is booted). Finally, make sure to choose the appropriate codepage (see Henrique's mail). You can either do it at boot with COUNTRY= in CONFIG.SYS, or either call nlsfunc hot, by means of the CHCP command. Hope that helps... Aitor 2007/6/27, Mateusz Viste <[EMAIL PROTECTED]>: > On Wednesday 27 June 2007 12:55, Aitor Santamaría wrote: > > There IS NLSFUNC, but only for the UNSTABLE kernel, so I guess perhaps > > hasn't been distributed in the official distributions. > > Okay, I have installed the unstable kernel (which, by the way, isn't unstable > at all - at least for me). I have now the NLSFUNC command available, but how > can I change date format using that command? I studied the docs, and there > are very few possible parameters for NLSFUNC... > > Best regards, > Mateusz Viste > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
On Wednesday 27 June 2007 12:55, Aitor Santamaría wrote: > There IS NLSFUNC, but only for the UNSTABLE kernel, so I guess perhaps > hasn't been distributed in the official distributions. Okay, I have installed the unstable kernel (which, by the way, isn't unstable at all - at least for me). I have now the NLSFUNC command available, but how can I change date format using that command? I studied the docs, and there are very few possible parameters for NLSFUNC... Best regards, Mateusz Viste - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Self-correction. There IS NLSFUNC, but only for the UNSTABLE kernel, so I guess perhaps hasn't been distributed in the official distributions. I wonder what is the criterion by which something goes from unstable to stable. I think NLSFUNC and the involved changes have been there for a long time already. Aitor 2007/6/26, Aitor Santamaría <[EMAIL PROTECTED]>: > Hello, > > As there's no NLSFUNC, you just create a new entry and re-compile. > As for the EURO, make sure that you choose a codepage that contains > the symbol (e.g. 858). > > Aitor > > 2007/6/26, Mateusz Viste <[EMAIL PROTECTED]>: > > Hi, > > > > Is there any way to set up manually all configurations for the COUTRY.SYS > > settings? I mean, how could I decide exactly which character I want to use > > for decimals, which for hundreds separator, how to display the date etc...? > > > > I know that I can choose between various countries standards, but none of > > them > > fills all my needs. > > > > What I would like to have is: > > Date format: dd.mm. > > Time format: hh:mm > > Decimal separator: " . " > > Hundreds separator: " ' " > > Currency: € (I don't know if FreeDOS is storing the currency anywhere) > > > > Any ideas? ;-) > > > > Best regards, > > Mateusz Viste > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Freedos-user mailing list > > Freedos-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/freedos-user > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Hello Mateusz! (Unfortunately I still didn't find a way to type non-western-european languages on Mozilla Thunderbird! :-( ) All I have to say about the Euro sign is for you not to worry since you'll probably use cp852, which already contains the Euro since I've prepared that for FreeDOS following IBM-DOS standards instead of MS-DOS standards. The only difference is precisely on codepoint 170, which is blank on a regular MS-DOS cp852 while in contains the Euro on IBM-DOS cp852. If you have a polish (or polish for programmers) keyboard and it does not have the Euro labeled on, you'll find the Euro on + (in case you haven't tried that already... ;-)). If you need the Euro sign AND support for kashubian instead of polish, please let me know. Na razie, Henrique Aitor Santamaría escreveu: > Hello, > > As there's no NLSFUNC, you just create a new entry and re-compile. > As for the EURO, make sure that you choose a codepage that contains > the symbol (e.g. 858). > > Aitor > > 2007/6/26, Mateusz Viste <[EMAIL PROTECTED]>: > >> Hi, >> >> Is there any way to set up manually all configurations for the COUTRY.SYS >> settings? I mean, how could I decide exactly which character I want to use >> for decimals, which for hundreds separator, how to display the date etc...? >> >> I know that I can choose between various countries standards, but none of >> them >> fills all my needs. >> >> What I would like to have is: >> Date format: dd.mm. >> Time format: hh:mm >> Decimal separator: " . " >> Hundreds separator: " ' " >> Currency: € (I don't know if FreeDOS is storing the currency anywhere) >> >> Any ideas? ;-) >> >> Best regards, >> Mateusz Viste >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Freedos-user mailing list >> Freedos-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/freedos-user >> >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] COUNTRY.SYS settings
Hello, As there's no NLSFUNC, you just create a new entry and re-compile. As for the EURO, make sure that you choose a codepage that contains the symbol (e.g. 858). Aitor 2007/6/26, Mateusz Viste <[EMAIL PROTECTED]>: > Hi, > > Is there any way to set up manually all configurations for the COUTRY.SYS > settings? I mean, how could I decide exactly which character I want to use > for decimals, which for hundreds separator, how to display the date etc...? > > I know that I can choose between various countries standards, but none of them > fills all my needs. > > What I would like to have is: > Date format: dd.mm. > Time format: hh:mm > Decimal separator: " . " > Hundreds separator: " ' " > Currency: € (I don't know if FreeDOS is storing the currency anywhere) > > Any ideas? ;-) > > Best regards, > Mateusz Viste > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] COUNTRY.SYS settings
Hi, Is there any way to set up manually all configurations for the COUTRY.SYS settings? I mean, how could I decide exactly which character I want to use for decimals, which for hundreds separator, how to display the date etc...? I know that I can choose between various countries standards, but none of them fills all my needs. What I would like to have is: Date format: dd.mm. Time format: hh:mm Decimal separator: " . " Hundreds separator: " ' " Currency: € (I don't know if FreeDOS is storing the currency anywhere) Any ideas? ;-) Best regards, Mateusz Viste - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user