Main page I Packages I Help I Forum

SvarDOS community forum

a place to talk about SvarDOS and other DOS-related things

jump to end reply list of threads

Codepage for Portuguese language and messy box characters

Hi, folks! Again I will bring an old debate about codepages for Portuguese language, but sometimes it happens at other languages too. From long, long ago, there was many software drawing box characters, for better formatting and good presentation. Clipper language programs are the most notable ones, but there were too many others, such as Norton Utilities, etc. Microsoft defaulted to use CP 850, because they want less support calls for the entire European country in the days. CP 850 does the job most of time, and the ones wanting to use box characters can adjust their systems themselves. But, in the default codepage for Portuguese language (CP 850), single box characters were changed to accommodate other accented characters not used in Portuguese, leading us to CP 860. CP 860 has all characters needed for box drawing, and is absolutely perfect for Portuguese and Brazilian language. The characters replaced in CP 850 are not used for native Portuguese, but are useful in multi-language setups. I think CP 860 is better as default to Portuguese speaking users in SvarDOS. Microsoft used to CP 850 because it made initial setup more easy, but in trust it was not needed most of time. Chars changed to accommodate specific needs happens in other codepages too.. what do you think?
078ac416e4811d4f ac7134fc6c34222e e676a6b143232a57 f638c349b414e0e6 b25cc1129ce8293c bc9a49b88c1ea9f5 a8d5c26e0797bc6f 2eba886e5c7e366b
I understand that CP860 was historically used in Portugal, so using it for Portuguese seems indeed like a logical thing to do, even if it impacts Portuguese-speaking people in other countries, like Brazil. Changing the SvarDOS installer is fairly easy, but then it will also require re-releasing all CORE packages that include *.BR translations since these translations need to be converted to CP860. This will also be a potential problem for people already having a SvarDOS installation set to LANG=BR in CP850: when an updated package will be installed (eg. through pkgnet), its output will be garbled, because it will output text in CP860 on a CP850 system. This might be a non-issue problem, though, if, as I suspect, our Portuguese user base is 1 person. :-) Mateusz
792007ec7ad2dd32 ebac4433c0483f2e 50a97a77b037aa67 dc1c75be2e9a3777 153be086cb63434d e2b53418c4356d9f 6645dc30750828cd 9dc5e18c3f084501
In reality, the impact is practically nil. Code page 860 was perfectly adequate for all Portuguese-speaking countries. It only affects Portuguese speakers who actually work with foreign languages ​​(that is, texts not written in Portuguese). Code page 850 sacrifices box-drawing characters to include other characters—not used in Portuguese—within the same code page (thereby making it more universal). Here is the changes in specific chars between 128-255: Byte (Hex) CP850 Character CP860 Character Reason for change in CP860 0x84 ä (a with umlaut) ã (a with tilde) Replaces a German/Nordic letter with one vital to Portuguese. 0x85 à (a with grave) à (a with grave) Maintained the same in both. 0x8B ï (i with umlaut) Í (capital I with acute) Replaces an umlaut with an accented capital vowel. 0x8C î (i with circumflex) Ô (capital O with circumflex) Replaces the "i" circumflex with the "O" needed for titles. 0x8E Ä (capital A umlaut) Ã (capital A with tilde) Ensures the uppercase version for titles or sentence beginnings. 0x91 æ (ae ligature) À (capital A with grave) Replaces the Nordic ligature with the uppercase grave "A". 0x92 Æ (capital AE ligature) È (capital E with grave) Replaces the Nordic ligature. 0x95 ò (o with grave) õ (o with tilde) Inserts the lowercase "o" with tilde, frequent in plurals (e.g., "ações"). 0x99 Ö (capital O umlaut) Õ (capital O with tilde) Uppercase version of the "o" with tilde. 0x9F ƒ (florin sign) Ó (capital O with acute) Replaces the currency/math symbol with the accented vowel. 0xA4 ñ (n with tilde) ñ / ₧ (peseta)* May vary depending on the internal IBM revision. Brazilian Portuguese has actually no use for umlaut. Tilde is used only with õ and ã, grave is for à only, circumflex is used with âêô only. Acute is used with all vowels. Ç is entered with a dead keypress of acute followed by "C", but the byte is the same for both codepages, both upper and lower. Europeans chars are mostly of no use, and florin sign is used to in graphical math applications only (not in text mode). The Dollar sign is used with Brazilian Real currency (R$), so nothing special here. Even Spanish ñ is not used. I doubt anyone are working at office or redacting professional texts with DOS nowadays, and foreign special words, (i.e. "Ampère") are written here without accents. So, CP860 fits perfectly, specially with Clipper based applications abusing the use of text boxes. In reality, Portugal uses more European characters that Brazil itself.

your name or nick

password (optional)


check the MIDDLE box: