Thread: ASCII table border

  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I call a small apple -- wait for it -- an apple. And a small pizza -- is still a pizza. Don't know what you call them.

  2. #17
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    948
    Quote Originally Posted by Adak View Post
    I call a small apple -- wait for it -- an apple. And a small pizza -- is still a pizza. Don't know what you call them.
    I also call both ASCII and Unicode (specific types of apples) "character sets" (apples).

    Your analogy is backwards. ASCII is a small apple (only 128 "bites" ), and Unicode is a larger apple (thousands of "bites"), but an apple as large as Unicode or any of the "ASCII extensions" is not a small apple.

    I also wouldn't call an apple a Gala unless it actually were a Gala. I can just imagine you at a grocery store:

    Adak: "I'd like some Galas!"
    Clerk: "We have only Granny Smiths"
    Adak: "I'll take those! They're still Galas!"

  3. #18
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    If you don't call setlocale(), then you can't expect anything to work other than the "basic character set" which the default "C" local provides.

    On *nix with a UTF8 locale, you can call setlocale(LC_ALL, "") and perform direct Unicode output with either wchar_t's or UTF8 encoded char's.

    gg

  4. #19
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by christop View Post
    I also call both ASCII and Unicode (specific types of apples) "character sets" (apples).

    Your analogy is backwards. ASCII is a small apple (only 128 "bites" ), and Unicode is a larger apple (thousands of "bites"), but an apple as large as Unicode or any of the "ASCII extensions" is not a small apple.

    I also wouldn't call an apple a Gala unless it actually were a Gala. I can just imagine you at a grocery store:

    Adak: "I'd like some Galas!"
    Clerk: "We have only Granny Smiths"
    Adak: "I'll take those! They're still Galas!"
    As long as you want to tell me I'm wrong, I'll tell you I'm right.

    I can tell you the exact moment when you'll post a winning argument:

    ASCII table border-hellfreezesover-jpg

    Your arguments have added so much to this thread!

  5. #20
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Well, the nice thing about what codeplug gave is that it degrades gracefully... right now I get the "this prob. wont work" message (meaning I don't have a 64 bit compiler) but I still get halfway decent character support, which is better than nothing.
    Last edited by whiteflags; 11-03-2012 at 10:22 PM.

  6. #21
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    What I was aiming for was:
    (_MSC_VER >= 1500) = Visual C++ 2008 or higher
    (__MSVCRT_VERSION__ >= 0x0800) = MinGW using MS CRT from VS 2008

    Support for direct Unicode output was added to the MS CRT that comes with VS 2008. So if you aren't using that CRT, and are compiling on Windows, then it "prob. won't work". You can use WriteConsoleW() directly if you don't have "_O_U16TEXT".

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A faster ASCII table
    By cpjust in forum Tech Board
    Replies: 16
    Last Post: 03-25-2010, 02:28 PM
  2. ASCII Table
    By peckitt99 in forum C Programming
    Replies: 21
    Last Post: 10-09-2006, 01:53 AM
  3. help! extended ascii table
    By godhand in forum Linux Programming
    Replies: 7
    Last Post: 10-07-2003, 05:20 PM
  4. ASCII table going crazy?
    By Jamsan in forum Windows Programming
    Replies: 19
    Last Post: 03-27-2003, 02:33 AM
  5. need help with an ascii table =\
    By gsr squirrel in forum C++ Programming
    Replies: 9
    Last Post: 04-19-2002, 03:11 AM