Re: extended characterset output

2022-04-08 Thread anonymous via Digitalmars-d-learn
On Friday, 8 April 2022 at 15:06:41 UTC, Ali Çehreli wrote: On 4/8/22 02:51, anonymous wrote: > Weird, I got this strange feeling that this problem stemmed from the > compiler I'm using (GDC) Some distribution install an old gdc. What version is yours? Ali Not sure actually. I just did "apt

Re: extended characterset output

2022-04-08 Thread Ali Çehreli via Digitalmars-d-learn
On 4/8/22 02:51, anonymous wrote: > Weird, I got this strange feeling that this problem stemmed from the > compiler I'm using (GDC) Some distribution install an old gdc. What version is yours? Ali

Re: extended characterset output

2022-04-08 Thread anonymous via Digitalmars-d-learn
On Friday, 8 April 2022 at 08:36:33 UTC, Ali Çehreli wrote: [snip] However, isControl() below won't work because isControl() only knows about the ASCII table. It would miss the unprintable characters above 127. [snip] This actuall works because I'm using std.uni.isControl() instead of

Re: extended characterset output

2022-04-08 Thread anonymous via Digitalmars-d-learn
On Friday, 8 April 2022 at 08:36:33 UTC, Ali Çehreli wrote: On 4/7/22 23:13, anonymous wrote: > What's the proper way to output all characters in the extended character > set? It is not easy to answer because there are a number of concepts here that may make it trivial or complicated. The

Re: extended characterset output

2022-04-08 Thread Ali Çehreli via Digitalmars-d-learn
On 4/7/22 23:13, anonymous wrote: > What's the proper way to output all characters in the extended character > set? It is not easy to answer because there are a number of concepts here that may make it trivial or complicated. The configuration of the output device matters. Is it set to

extended characterset output

2022-04-08 Thread anonymous via Digitalmars-d-learn
What's the proper way to output all characters in the extended character set? ```d void main() { foreach(char c; 0 .. 256) { write(isControl(c) ? '.' : c); } } ``` Expected output: ```