News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#21
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by John Z - January 25, 2026, 11:31:53 AM
Hmmmm - someone in France cloned / forked smorgasbordet.com into Github.

This could save Pelle from adding all the examples to the new PellesC.se site, but control over the integrity of those files could be questioned imo.

Downloaded cc.exe  just to check the version it shows 13.0.1.0 but I'm not trying it..

No sources for PellesC of course,the actual programs, just copied from the installed directory I suppose. No notes or comments or attributions either.

Personally I'd go to wayback machine before this GitHub without more details from the poster.

John Z
#22
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by Kochise - January 25, 2026, 10:15:42 AM
Interesting...
#23
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by Vortex - January 24, 2026, 10:05:14 PM
Hi Kochise,

You may wish to check :

https://www.pellesc.se/
#24
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by Kochise - January 24, 2026, 09:28:36 PM
Hi, latest version is available here as well :

https://github.com/wenuam/wm_app_dev_lng_c__PellesC/tree/13.00_250521
#25
Assembly discussions / Re: Syslink demo
Last post by Vortex - January 24, 2026, 08:25:02 PM
Here is the 64-bit version.
#26
Add-ins / Re: Export C source as HTML or...
Last post by John Z - January 24, 2026, 10:59:02 AM
Hi Robert,

Quote from: Robert on January 23, 2026, 06:03:43 PMMy interest in your resurrection of the Pelles C Export addin is in the "Export to HTML" facility. I think it can handle Unicode identifiers and quotation mark embedded Unicode strings.

Yes - Export to HTML can easily handle UTF-8, I just did a quick update, but it should not take too much to fix it.

Quote from: Robert on January 23, 2026, 06:03:43 PMIf you are interested in developing a Unicode capable "Export to HTML" facility, you might find some help studying the BCX translated C codes of the example on the webpage

No need - I have already previously written as part of another Add-In program (LineCounter+  https://forum.pellesc.de/index.php?topic=10092.0 ) a module that does output a file in UTF-8 HTML.  Since Pelle C now defaults to UTF-8 rather than a codepage it should be even easier.

So - I'll take a look at fixing that part of the Export Add-In.  Attached is an HTML output example from the LineCounter Add-in.

John Z

Like you said previously, optimistically,  "Nothing is impossible."  :)
#27
Add-ins / Re: Export C source as HTML or...
Last post by Robert - January 23, 2026, 10:54:58 PM
Quote from: TimoVJL on January 23, 2026, 05:43:50 PMHow that helps RTF coding ?

EDIT:
Quote from: Robert on January 23, 2026, 06:03:43 PMUnfortunately, the RTFDEFS.H document referenced is not obviously available.
How to Obtain the WinWord Converter SDK (GC1039)

Thanks TimoVjl, the rtfdefs.h file is in the download and the charset defines are


// \fcharset, \cchs argument values
// some of these values may also be #defined in windows.h; here's the
// complete list
#define ANSI_CHARSET                  0
#define DEFAULT_CHARSET               1
#define SYMBOL_CHARSET                2
#define INVALID_CHARSET               3 // nil value
#define MAC_CHARSET                  77
#define SHIFTJIS_CHARSET            128 // CP 932: Japanese
#define HANGEUL_CHARSET             129 // CP 949: Korean
#define JOHAB_CHARSET               130
#define GB2312_CHARSET              134 // CP 936: PRC             
#define CHINESEBIG5_CHARSET         136 // CP 950: Taiwan
#define GREEK_CHARSET               161
#define TURKISH_CHARSET             162
#define HEBREW_CHARSET              177
#define ARABIC_CHARSET              178
#define ARABICTRADITIONAL_CHARSET   179
#define ARABICUSER_CHARSET          180
#define HEBREWUSER_CHARSET          181
#define BALTIC_CHARSET              186
#define RUSSIAN_CHARSET             204
#define THAI_CHARSET                222
#define EASTEUROPE_CHARSET          238
#define PC437_CHARSET               254
#define OEM_CHARSET                 255

Correlation of Unicode chars to the above RTF charset data may be possible using the International Components for Unicode libraries functions to process locale data contained in the the Unicode Common Locale Data Repository (CLDR).

https://github.com/unicode-org/icu
https://github.com/unicode-org/cldr

There are several RTF-charset to UTF-8 converters but what is needed here, for the Export to RTF addin, is a Unicode to RTF-charset converter.

Obviously, from the above list of charsets, the conversions from Unicode would be limited. For example, C coders working with the Native American Osage language script or the International Phonetic Alphabet (Hello, anyone out there ?) would be excluded.

#28
Add-ins / Re: Export C source as HTML or...
Last post by Robert - January 23, 2026, 06:03:43 PM
Quote from: John Z on January 23, 2026, 12:59:59 PMAssuming the code comments are in the users default code page language then
#include <windows.h>
#include <stdio.h>

int main() {
    UINT user_codepage = GetACP(); // Retrieve the system default Windows ANSI code page

    printf("The user's default Windows ANSI code page is: %u\n", user_codepage);

    // Optional: Keep the console window open to view the output
    printf("Press Enter to exit...");
    getchar();

    return 0;
}

or variation thereof can get the correct code page to encode in the output file(s).
Code snippet provided by Google 'AI? overview -  :( however only the first line is relevant :)

John Z

Hi John Z:

My inaccurate "Code Pages" statement should have stated

"Ah yes, charsets and charset fonts."

There is some information in

https://www.biblioscape.com/rtf15_spec.htm

where it is written

Quote\fcharsetN   Specifies the character set of a font in the font table. Values for N are defined by Windows header files, and in the file RTFDEFS.H accompanying this document.

Unfortunately, the RTFDEFS.H document referenced is not obviously available.

There is a webpage at

https://www.n2pdf.de/fileadmin/user_upload/n2pdf/files/en/help/client_enu/unicode.htm

that has a table of codepage - charset equivalents.

My interest in your resurrection of the Pelles C Export addin is in the "Export to HTML" facility. I think it can handle Unicode identifiers and quotation mark embedded Unicode strings. RTF ?? I really doubt it. PDF ?? Definitely beyond my pay grade.

If you are interested in developing a Unicode capable "Export to HTML" facility, you might find some help studying the BCX translated C codes of the example on the webpage

https://bcxbasiccoders.com/webhelp/html/bcxunicode.htm#widetoansi
#29
Add-ins / Re: Export C source as HTML or...
Last post by TimoVJL - January 23, 2026, 05:43:50 PM
How that helps RTF coding ?

EDIT:
Quote from: Robert on January 23, 2026, 06:03:43 PMUnfortunately, the RTFDEFS.H document referenced is not obviously available.
How to Obtain the WinWord Converter SDK (GC1039)


HTML
https://unicodelookup.com/
#30
Add-ins / Re: Export C source as HTML or...
Last post by John Z - January 23, 2026, 12:59:59 PM
Assuming the code comments are in the users default code page language then
#include <windows.h>
#include <stdio.h>

int main() {
    UINT user_codepage = GetACP(); // Retrieve the system default Windows ANSI code page

    printf("The user's default Windows ANSI code page is: %u\n", user_codepage);

    // Optional: Keep the console window open to view the output
    printf("Press Enter to exit...");
    getchar();

    return 0;
}

or variation thereof can get the correct code page to encode in the output file(s).
Code snippet provided by Google 'AI? overview -  :( however only the first line is relevant :)

John Z