diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-04-15 02:05:06 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-04-15 02:05:06 +0000 |
| commit | 8c9fb5465c4a51f812392e6c74064d9b4559b8c4 (patch) | |
| tree | be2b97da42dfcf215bacd6b30c48f27deeb65862 /src | |
| parent | 570e3f850bd19b4a0e975c3593ee6d8460f1b9a5 (diff) | |
in preperatio of STR#1195:ISO 8859-1 fixes for Fl_Input_ and derived classes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Input_.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 142870bec..41ddcaa26 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -84,6 +84,12 @@ const char* Fl_Input_::expand(const char* p, char* buf) const { *o++ = '^'; *o++ = c ^ 0x40; } + } else if (c >= 128 && c < 0xA0) { + // these codes are not defined in ISO code, so we output the octal code instead + *o++ = '\\'; + *o++ = ((c>>6)&0x03) + '0'; + *o++ = ((c>>3)&0x07) + '0'; + *o++ = (c&0x07) + '0'; } else if (c == 0xA0) { // nbsp *o++ = ' '; } else { @@ -109,6 +115,7 @@ double Fl_Input_::expandpos( if (c == '\t' && input_type()==FL_MULTILINE_INPUT) n += 8-(n%8); else n += 2; } else if (c >= 128 && c < 0xA0) { + // these codes are not defined in ISO code, so we output the octal code instead n += 4; } else { n++; |
