summaryrefslogtreecommitdiff
path: root/src/makefile.wat
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-04-18 13:07:42 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-04-18 13:07:42 +0000
commitc9908d97e3ab4e4d0cd87435c52aea88a5a4abc0 (patch)
tree22160908f3ff9de99491891d27c5b9942d5bda57 /src/makefile.wat
parente682ec63392c413db5a7bfa00fd092dbf07bc4d3 (diff)
THIS FIX CONTAINS TWO MORE FILES THAT MUST BE COMPILED. I would
like to ask the maintainers of the build environments to please add these files to the setup: src/fl_encoding_latin1.cxx src/fl_encoding_mac_roman.cxx I ADDED SOME DOCUMENTATION THAT NEEDS TO BE FIXED. Beeing not a native English speaker, I have a hard time writing documentation. Would someone please update my babbeling in documentation/drawing.html? Thanks. This commit fixes some very basic problems with OS X's code page in preparation for the compose-character keyboard fix. It also fixes issues with MS Windows and X11 not rendering the characters in the Western (Latin-1) set between 0x80 and 0x9F. In the original ISO font, they were unused, but are now assigned to international characters like the Euro currency sign. This patch also tries to fix one basic flaw with FLTK 1 and font encoding. I will not put much more work into this because FLTK 1.2 and FLTK 2 fix the problem entirely by using UTF-8 instead of 8-bit "C"-style strings. All these changes are only meaningful for foreign language users or users of special characters like the Euro, the Degree or the Permille symbol. A short explanation follows. Max OS X uses a different code page than X11 and Win32. This means that all characters above 0x7f have an entirely different meaning. If your source code contains international characters, your text will appear different if you change to another OS. This patch provides two functions that convert text with international characters from the character set of the source code into the local character set. Two more functions are provided to convert them back. The functions are fl_latin1_to_local (source is in Win32 or X11), fl_mac_roman_to_local (source was written on OS X) and the corresponding fl_local_to_latin1 and fl_local_to_mac_roman, which are very useful if yoou want to store strings with intl. characters that will be moved between systems. All this is assuming a "Western" code page as it is common in the Americas and most of Europe. User of other languages will have to use FLTK 2. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/makefile.wat')
-rw-r--r--src/makefile.wat2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/makefile.wat b/src/makefile.wat
index abf34e941..4fcc3cff2 100644
--- a/src/makefile.wat
+++ b/src/makefile.wat
@@ -126,6 +126,8 @@ CPPFILES = &
fl_draw.obj &
fl_draw_image.obj &
fl_draw_pixmap.obj &
+ fl_encoding_latin1.obj &
+ fl_encoding_mac_roman.obj &
fl_engraved_label.obj &
fl_file_dir.obj &
fl_font.obj &