| Store | Cart

Re: [TCLCORE] [option readfile] unicode support

From: Donald G Porter <dona...@nist.gov>
Tue, 2 Feb 2016 12:09:31 -0500
Donald G Porter:
>> What encoding(s) are the nine files Bwidget/lang/*.rc stored in?

On 02/02/2016 10:25 AM, Harald Oehlmann wrote:
> da.rc (Danish) is in a iso-latin variant

Yes, it looks like many of the other *.rc files from BWidget
are stored in iso8859-1.  That leads to trouble.

package require msgcat
msgcat::mclocale da
package require BWidget
MessageDlg .m -type abortretryignore -icon question

See the attachment screenshot image for the bad title that results.

If you don't see a bad title on your own system, then I can only guess 
that Tk passes bytes for its title display, and Windows is happier to 
accommodate iso8859-1 than the graphics system I'm using on Linux.

At least this demos that BWidget is nonportable on this, and can
become portable by converting all its *.rc files to utf-8.

Over more time, it's likely better to not use *.rc files for this at
all, but convert to use of actual message catalogs.

So the surprising conclusion is that Tk 8.5.18 not only accepts
utf-8 encoded X resource files, it really only works reliably with
them.

My tentative conclusion is that the recent change to [option readfile]
is a mistake, and at the very least unsuitable for Tk 8.5.19.

I'm still interested in any background available about why Androwish
has moved in that direction. There may well still be background facts
for me to learn.

-- 
| Don Porter            Applied and Computational Mathematics Division |
| dona...@nist.gov             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
Brian Griffin Jan 27, 2016 10:57 pm
Porter, Don Feb 04, 2016 06:18 pm
Donal K. Fellows Feb 01, 2016 12:43 am
Duquette, William H (393K) Feb 01, 2016 04:44 pm
Francois Vogel Jan 28, 2016 07:42 am
Jan Nijtmans Jan 28, 2016 08:53 am
Francois Vogel Jan 28, 2016 12:01 pm
Brian Griffin Jan 28, 2016 02:27 pm
Brian Griffin Jan 28, 2016 06:06 pm
Brian Griffin Jan 28, 2016 06:18 pm
Francois Vogel Jan 28, 2016 07:23 pm
Brian Griffin Jan 28, 2016 07:36 pm
Francois Vogel Jan 28, 2016 08:01 pm
Brian Griffin Jan 28, 2016 08:14 pm
Francois Vogel Jan 28, 2016 08:47 pm
Brian Griffin Jan 28, 2016 08:59 pm
Francois Vogel Jan 28, 2016 08:51 pm
Brian Griffin Jan 28, 2016 09:09 pm
Brian Griffin Jan 29, 2016 04:49 pm
Donald G Porter Jan 29, 2016 05:47 pm
Francois Vogel Jan 29, 2016 05:54 pm
Francois Vogel Jan 29, 2016 06:02 pm
Brian Griffin Jan 29, 2016 06:10 pm
Francois Vogel Jan 29, 2016 06:12 pm
Brian Griffin Jan 29, 2016 06:17 pm
Brian Griffin Jan 29, 2016 06:30 pm
Francois Vogel Jan 29, 2016 06:40 pm
Francois Vogel Jan 29, 2016 08:30 pm
Brian Griffin Jan 29, 2016 08:51 pm
Francois Vogel Jan 29, 2016 10:03 pm
Brian Griffin Jan 29, 2016 10:54 pm
Brian Griffin Jan 29, 2016 10:58 pm
Francois Vogel Feb 08, 2016 11:25 pm
Francois Vogel Jan 29, 2016 11:51 pm
Brian Griffin Jan 29, 2016 11:58 pm
Francois Vogel Jan 30, 2016 01:54 pm
Francois Vogel Jan 31, 2016 02:51 pm
Brian Griffin Jan 31, 2016 06:13 pm
Donald Porter Jan 30, 2016 01:50 am
Jan Nijtmans Jan 31, 2016 11:50 am
Donald Porter Jan 31, 2016 11:51 pm
Brian Griffin Jan 29, 2016 05:59 pm
Francois Vogel Jan 29, 2016 06:06 pm
Francois Vogel Feb 08, 2016 08:40 pm
Harald Oehlmann Feb 03, 2016 10:12 am
Jan Nijtmans Feb 03, 2016 08:59 am
Donald G Porter Feb 04, 2016 07:27 pm
Harald Oehlmann Feb 03, 2016 08:21 am
Brian Griffin Feb 04, 2016 06:24 pm
Donald Porter Feb 08, 2016 04:03 pm
Brian Griffin Feb 09, 2016 03:30 am
Harald Oehlmann Feb 08, 2016 03:59 pm
Jan Nijtmans Feb 08, 2016 03:54 pm
Brian Griffin Feb 09, 2016 12:04 am
Brian Griffin Feb 04, 2016 07:56 pm
Jan Nijtmans Feb 02, 2016 10:28 pm
Christian Werner Feb 02, 2016 10:00 pm
Harald Oehlmann Feb 01, 2016 07:47 am
Jan Nijtmans Feb 01, 2016 08:50 am
Donald G Porter Feb 02, 2016 02:49 pm
Brian Griffin Jan 31, 2016 06:30 pm
Jan Nijtmans Feb 02, 2016 08:48 pm
Harald Oehlmann Feb 02, 2016 05:24 pm
Francois Vogel Feb 07, 2016 01:54 pm
Donald G Porter Feb 02, 2016 05:09 pm
Harald Oehlmann Feb 02, 2016 03:25 pm
Donald G Porter Feb 02, 2016 04:10 pm
Messages in this thread