On Tue, 29 Dec 2015 15:07:53 -0500
Stephen <sbun...@smartsonsite.com> wrote:

> On 12/29/2015 10:54 AM, Fabien Bodard wrote:
> > To resume ... in the old past of ascii all standart printer or monitor
> > can manage ascii and print 32 to 127 chars. So Ansi C provide a
> > standart function named IsPrint that allow to say if a char was able
> > to be printed.
> >
> > IN 2015... Ascii is known in it's 8 bit format so printable chars are
> > from 32 to 255.
> >
> > Characters lower than 32 are for monitor, modem and printer management.
> >
> > Thanks to my terminal studie i'm now able to understand all of that :-).
> >
> > It's really interresting to study the past ...
> >
>    It's more interesting to have LIVED it and now be working with UTF-8.
> ASCII was SOOO simple, but also SOOOO restrictive.
> 
> > 2015-12-29 16:39 GMT+01:00 Fabien Bodard<gambas...@gmail.com>:
> >> But is print just take into account the old asci table
> >>
> >>
> >> 2015-12-29 16:35 GMT+01:00 ML<d4t4f...@gmail.com>:
> >>> All,
> >>>
> >>> I might be utterly wrong, but since Linux normally uses UTF-8, any
> >>> high-bit-set char may be interpreted as one of the "multibyte char" flags.
> >>> If isprint() takes this into account, then it's dead right that char by
> >>> itself is not printable!
> >>>
> >>> Hope that helps and makes sense...
> >>>
> >>> On 2015-12-29 11:53, Ru Vuott wrote:
> >>>> Tchao Fabien,
> >>>> Ru ..  Characters>  to 127 are printable...
> >>>> uhmmm... excuse me, but I do not understand.
> >>>> If I test the "printability" :-)  of "characters>  to 127" by using C 
> >>>> "isprint()" function (that checks whether the passed character is 
> >>>> printable), I obtain only zero results.
> >>>> Where: "isprint()" function returns a non-zero value (true) if character 
> >>>> is printable, else zero (false) if character is NOT printable.
> >>>>
> >>>> *****************************************************
> >>>> #include<stdio.h>
> >>>> int main() {
> >>>>        int i, c;
> >>>>        for (i=128; i<= 255; ++i) {
> >>>>                c = isprint(i);
> >>>>                printf("%d     %d\n", i, c);
> >>>>        }
> >>>>     return (0);
> >>>> }
> >>>> *****************************************************
> >>>> So, it seems resulting that "characters>  to 127" are NOT printable 
> >>>> characters.
> >>>> Ciao

Yes and no.  Short answer: 129 though 255 are "extended ACSII"  - a very 
nebulous area.  What is "printable" depends on the "printing device" "character 
code" set.
The character "Ⱶ"  is part of a code set I recall being called the "box 
drawing" set that was used on some CRT "print" devices from a bygone era (aka 
before Unicode).
In fact, the fact that I can see and recognize it means something.  The 
following is a link to an archived article in which you can see the "amazing" 
things that were done with such code sets in the 1980's.

https://books.google.com.au/books?id=C6JUZUHEBuAC&pg=PA327&lpg=PA327&dq=the+software+bottling+company&source=bl&ots=dCVO1ZWFmo&sig=tzzYiReg3OW8NI65rmBvQXo1GXU&hl=en&sa=X&ved=0ahUKEwiC_PHvqYLKAhXjFqYKHRgrCmc4ChDoAQgwMAA#v=onepage&q=the%20software%20bottling%20company&f=false

cheers
bruce

> >>> ------------------------------------------------------------------------------
> >>> _______________________________________________
> >>> Gambas-user mailing list
> >>> Gambas-user@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >>
> >> --
> >> Fabien Bodard
> >
> >
> 
> 
> -- 
> Kindest Regards
> Stephen A. Bungay, Prop.
> Smarts On Site Information Systems
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen <adamn...@gnail.com (sort of)>

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to