Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: vallor Newsgroups: comp.lang.c Subject: Re: Rationale for aligning data on even bytes in a Unix shell file? Date: Mon, 28 Apr 2025 01:21:39 -0000 (UTC) Organization: A noiseless patient Spider Lines: 55 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 28 Apr 2025 03:21:39 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0352a802de88ed440cd261d8b4d98a94"; logging-data="1952202"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nwxwQSyyyJsW12nLd4bc1" User-Agent: Pan/0.162 (Hmm4; 100b1318; Linux-6.14.4) Cancel-Lock: sha1:MbDy1Snuala+BNn2q076KFiBS7I= X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9 wrote in : > Am 27.04.2025 um 21:55 schrieb Janis Papanagnou: > >> I think we have to distinguish the technical base size, an octet, >> from the actual filenames. My Linux has no problem to represent, >> say, filenames in Chinese or German umlaut characters that require >> for representation 2 octets. > > You're joking. Which applications currently can handle more than > a 7 bit characters with Unix files ? _[/home/vallor/tmp]_(vallor@lm)🐧_ $ touch 調和 _[/home/vallor/tmp]_(vallor@lm)🐧_ $ ls 調和 _[/home/vallor/tmp]_(vallor@lm)🐧_ $ ls -l total 0 -rw-rw-r-- 1 vallor vallor 0 Apr 27 17:59 調和 ObC (What did I mess up here?): $ cat readit.c #include #include #include #include int main(void) { DIR * this = {0}; struct dirent * entry = {0}; char * s; this = opendir("."); while ((entry = readdir(this))!=NULL) { if(!strcmp(entry->d_name,".")) continue; if(!strcmp(entry->d_name,"..")) continue; for(s = entry->d_name; *s ; s++) { printf("%x\n",*s); } puts("---"); } return 0; } -- -v