| Deutsch English Français Italiano |
|
<mabiodF2n9eU1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?Q?Josef_M=C3=B6llers?= <josef@invalid.invalid> Newsgroups: comp.lang.c Subject: Re: encapsulating directory operations Date: Wed, 4 Jun 2025 20:48:45 +0200 Lines: 31 Message-ID: <mabiodF2n9eU1@mid.individual.net> References: <100h650$23r5l$1@dont-email.me> <87bjrkxonr.fsf@nosuchdomain.example.com> <b7fb8fc41d43807641e673e1ca1d3baf69f5766f@i2pn2.org> <87iklrtcys.fsf@nosuchdomain.example.com> <20250523132019.763@kylheku.com> <100qm76$7shk$2@dont-email.me> <20250523140729.787@kylheku.com> <100qru0$9mjb$2@dont-email.me> <101929h$3olom$4@dont-email.me> <10196gn$3pd33$1@dont-email.me> <101aca9$me2$3@dont-email.me> <101afvt$1sm1$1@dont-email.me> <871ps7f8o3.fsf@nosuchdomain.example.com> <101aif2$1sm2$3@dont-email.me> <Qb4_P.377135$vvyf.313049@fx18.iad> <101bpl8$d1n8$1@dont-email.me> <101dac8$mkpm$3@dont-email.me> <101p3b3$o3pc$1@dont-email.me> <101poqm$t350$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net WIuf0KgwcCKHJeDpVa98uAm+q84M9vMHI8YwQ2pTnniTOIrUeT Cancel-Lock: sha1:TUr4YTvNRFMZH44odSmEQXPrAAE= sha256:W2xvdDw3y7CE/vmw/BmsfjbY93I8SjW/B12e00B5/pA= User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <101poqm$t350$1@dont-email.me> Bytes: 2891 On 04.06.25 17:30, David Brown wrote: > On 04/06/2025 11:23, Paul Edwards wrote: >> >> And I know what you're thinking - all the data is in EBCDIC. >> There are no other EBCDIC systems I could possibly jump to. >> We would need an 80386 EBCDIC version of Win32 in order >> for this to be remotely possible - which doesn't exist, and likely >> never will exist. >> >> For it to exist it would need some sort of pseudo-bios concept >> that allowed charset conversion. And no such thing exists as far >> as I am aware! >> > > You don't need an EBCDIC operating system, or "pseudo-bios" (whatever > /that/ might be) to use data using EBCDIC character encoding. It is no > different from working with any other character encoding - ASCII, UTF-8, > different 8-bit code pages, or whatever. If the data is just passing > through your code, read it in and pass it out without a care. If you > need to convert it or mix it with some other encoding, work with a > common encoding - UTF-8 is normally the right choice. This might be true if there were no special characters, but eg the slash is 2FH in ASCII but 61H in EBCDIC, so Linux may have a problem there. The backslash is 0E0H in EBCDIC (at least in Australia, Brasil, Canada, and various other countries), 0ECH in Germany and Austria while it is 5CH in ASCII. So DOS and Windows have a problem here. So, YES, the operating system has to be aware of the code set used. Josef