Re: [rfbproto] [PATCH] Describe the xvp extension

2009-06-04 Thread Pierre Ossman
On Wed, 03 Jun 2009 23:17:44 +0100
Colin Dean  wrote:

> > 
> > This discussion must have been off-list, or on some other list, so I'm
> > not aware of the idea here.
> 
> Daniel's suggestion on this list, 27 May:
> 
> http://sourceforge.net/mailarchive/message.php?msg_name=20090527095936.GA31980%40berrange.com
> 

Hmm... The reference was present already in your original patch though,
albeit in a different form.

> However, I have now removed the offending paragraph.
> 

Ok. We can leave that discussion for a later time then.

> > We can drop the naming discussion. But I think the above issue needs to
> > be resolved, as does the issue of how future version numbers should be
> > handled. Since it's just you and Peter Rosin who have implemented this
> > extension, I'd say you're in a best position to specify the handling so
> > that it doesn't break anything existing.
> 
> In the attached patch, I have attempted to address version numbering
> (see the server message description).
> 

Looks very nice. I've applied the patch.

Rgds
-- 
Pierre OssmanOpenSource-based Thin Client Technology
System Developer Telephone: +46-13-21 46 00
Cendio ABWeb: http://www.cendio.com


signature.asc
Description: PGP signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto


Re: [rfbproto] [PATCH] Add Makefile

2009-06-04 Thread Pierre Ossman
On Mon, 1 Jun 2009 14:30:55 +0200
Pierre Ossman  wrote:

> On Mon, 01 Jun 2009 13:17:17 +0200
> Peter Rosin  wrote:
> 
> > 
> > Those are spelled rst2newlatex.py and rst2html.py on my system.
> > What are their canonical names?
> > 
> 
> Upstream uses the .py suffix. Annoying...
> 
> I guess we need to do something clever here.
> 

How about this:

Index: rsttool
===
--- rsttool (revision 0)
+++ rsttool (revision 0)
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# This is a small wrapper to work around the fact that the
+# docutils tools are named differently in different distributions.
+#
+
+if [ $# -lt 1 ]; then
+  echo "Syntax:"
+  echo "$0  [args...]"
+  exit 1
+fi
+
+TOOL="$1"
+shift
+
+# Upstream name
+if type -t "$TOOL.py" > /dev/null; then
+  exec "$TOOL.py" "$@"
+fi
+
+# "Santised" name
+if type -t "$TOOL" > /dev/null; then
+  exec "$TOOL" "$@"
+fi
+
+echo docutils tool $TOOL could not be found
+exit 1
+

Property changes on: rsttool
___
Added: svn:executable
   + *

Index: Makefile
===
--- Makefile(revision 0)
+++ Makefile(revision 0)
@@ -0,0 +1,14 @@
+all: rfbproto.pdf rfbproto.html
+
+.SUFFIXES : .rst .pdf .html
+
+.rst.pdf:
+   mkdir -p tmp
+   ./rsttool rst2newlatex "$<" tmp/tmp.tex
+   (cd tmp; pdflatex tmp.tex)
+   # We need to run it twice for links and TOC to work
+   (cd tmp; pdflatex tmp.tex)
+   mv tmp/tmp.pdf "$@"
+
+.rst.html:
+   ./rsttool rst2html "$<" "$@"


-- 
Pierre OssmanOpenSource-based Thin Client Technology
System Developer Telephone: +46-13-21 46 00
Cendio ABWeb: http://www.cendio.com


signature.asc
Description: PGP signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto


Re: [rfbproto] [PATCH] Describe the DesktopName pseudo-encoding

2009-06-04 Thread Pierre Ossman
On Fri, 29 May 2009 10:51:14 +0200
Pierre Ossman  wrote:

> 
> Has anyone done a survey of how implementations treat this extension
> and the name field in the server init? If there are no existing
> implementations that prevent it, then I'd like to specify UTF-8 for at
> least the extension.
> 

I've been digging through the RealVNC source and string handling is
just a complete clusterfuck. The implementation uses the all too
familiar approach of sticking one's head in the sand and hoping that
all encoding issues will just sort themselves out.

This is the reality of things:

1. Unix server

Uses whatever encoding the parameters are in when invoking Xvnc or
vncconfig. Since most Linux distributions these days use UTF-8, so the
desktop name will in turn mostly be UTF-8.

2. Windows server

Uses the ACP (Active Code Page). Can really be a lot of things, though
most often cp1252 (almost 8859-1) in the west.

3. Unix client

Passes the string unmodified to XSetName(). Looking at the xlib
reference documentation, this uses "Host Portable Character Encoding"
which in turn uses a lot of weasel wording and doesn't really define
that much at all. Looking at the ICCCM though and how xlib
implementations behave in practice, this encoding is 8859-1.

IOW, the Unix client assumes the name is in 8859-1.

4. Window client

Like the Windows server, it assumes that things are in ACP.


So to summarise, the only part that has some idea of what encoding it
wants is the Unix client. Everything else is basically random and
dependent on the system settings. ASCII should be fairly safe to use,
but I'm not 100% sure of even that.

Given that most of the systems (except for the Unix server) have been
using 8859-1 (or cp1252, which is close) in practice, I'd say we define
the desktop name to be 8859-1 and nothing else.

Rgds
-- 
Pierre OssmanOpenSource-based Thin Client Technology
System Developer Telephone: +46-13-21 46 00
Cendio ABWeb: http://www.cendio.com


signature.asc
Description: PGP signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto


Re: [rfbproto] [PATCH] Describe the DesktopName pseudo-encoding

2009-06-04 Thread Pierre Ossman
Just for fun, I had a quick look at the clipboard handling. The
situation is better there with the Unix side handling things correctly.
Windows however is broken and assumes that the local system uses a
superset of 8859-1.

Rgds
-- 
Pierre OssmanOpenSource-based Thin Client Technology
System Developer Telephone: +46-13-21 46 00
Cendio ABWeb: http://www.cendio.com


signature.asc
Description: PGP signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto