Deutsch   English   Français   Italiano  
<vuml73$1riea$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

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 <vallor@cultnix.org>
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: <vuml73$1riea$1@dont-email.me>
References: <vuih43$2agfa$1@dont-email.me>
	<gy6PP.1827683$SZca.35581@fx13.iad>
	<vult7f$1cn30$2@raubtier-asyl.eternal-september.org>
	<vum23d$1hkjs$1@dont-email.me>
	<vumjhf$20u1e$1@raubtier-asyl.eternal-september.org>
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<Q#U*4QO)$l81M`{Q/n
 XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
Bytes: 2629

On Mon, 28 Apr 2025 02:53:45 +0200, Bonita Montero
<Bonita.Montero@gmail.com> wrote in
<vumjhf$20u1e$1@raubtier-asyl.eternal-september.org>:

> 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 <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>

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