Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
> The keyfile.to_data() tells that the number of bytes is 17838 after > adding "blahblah" correction: The keyfile.to_data() tells that the number of bytes is 17838 after adding "Name[nl_NL.UTF-8]=blahblah" and i have seen some extra 0x0a So 17838 would be the correct buffersize. -- (o_ //\ R

Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
After some more experimenting, I maybe have a hunch. Could it be that something goes wrong between keyfile handing over it's buffer and putting that in a javascript string? The input file is 17809 The keyfile.to_data() tells that the number of bytes is 17838 after adding "blahblah" The javascript s

Using JS to write to file under /sys

2012-07-26 Thread Alessandro Crismani
Hi there, I do not know if this list is the right ML for this question, but I do not know where exactly it should go. Suggestions are welcomed if I am out of scope. I am trying to write a GJS program (which at some point I might turn into a Gnome Shell extension) that modifies files under /s

Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
The more I try the less I understand. When I convert the buffer explicitly from utf-8 to utf-8 the results stay the same. When I log the buffer to stdout, all the encoding stays well and all the locales are seen in their own fonts (I got most fonts of the world installed), when written to file al

Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
I was wrong, any filesave method just saves into whatever encoding, opening the resultant file in gedit gives an ecoding error and none whatsoever encoding import helps. When I edit the original with gedit I can open it (it is UTF-8) and saving it will preserve all the locale strings in any langua

Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
I found the problem, faulty reference told me bufferlen has to be placed after buffer in aruments, this is not true. Filewriting works, but also freaking ISO-8859-1 instead of UTF-8. Translating encoding is no option as there are many locale in this .desktop file that I have in buffer, and all n

Re: Writing a buffer with UTF-8 content.

2012-07-26 Thread Clemens
Am 26.07.2012 18:08, schrieb Yaa101: Hi all, I am having trouble writing a buffer with UTF-8 content to a file. I know that GLib.file_set_contents will not do the job because it writes ISO-8859-1 instead of UTF-8. I tried to get it done with this code: let gFile = Gio.file_new_for_path(this._

Re: symbolic SVG *not* as an icon?

2012-07-26 Thread Clemens
Am Do 26 Jul 2012 18:51:40 CEST schrieb Yaa101: Hi Ami, I do not know too much detail on applying css on st widgets. The following is a hunch and probably will not help you, I hope it is useful anyway. I do know that SVG is not a picture on which you can do raster operations like filling color

Re: Problem using gio settings in prefs tool

2012-07-26 Thread Yaa101
I can assure that it is a bug, but I guess you want to hear this from one of the developers. See this email as a bump. :-) However, it's a bug you can ignore, unless you are debugging it and want to know the values of name, this.g_object_path or e.message. -- (o_ //\ Regards, Groeten, V_/_ Ba

Re: symbolic SVG *not* as an icon?

2012-07-26 Thread Yaa101
Hi Ami, I do not know too much detail on applying css on st widgets. The following is a hunch and probably will not help you, I hope it is useful anyway. I do know that SVG is not a picture on which you can do raster operations like filling colors, SVG is a collection of commands to create a vec

Writing a buffer with UTF-8 content.

2012-07-26 Thread Yaa101
Hi all, I am having trouble writing a buffer with UTF-8 content to a file. I know that GLib.file_set_contents will not do the job because it writes ISO-8859-1 instead of UTF-8. I tried to get it done with this code: let gFile = Gio.file_new_for_path(this._path); let gFileOutputStream = gFile.r

RE: Gnome 3.0 : User account online

2012-07-26 Thread Gabriel Rossetti
echo "Hello, Gnome 3.0 on a magnificent stuff that we could have would be a management user account online. I explain how it works: I created an account on Gnome.org via "online account", and then the data is synchonisées with this online account. Among the data: - The list of installed progra

Gnome 3.0 : User account online

2012-07-26 Thread informalibre montceau
Hello, Gnome 3.0 on a magnificent stuff that we could have would be a management user account online. I explain how it works: I created an account on Gnome.org via "online account", and then the data is synchonisées with this online account. Among the data: - The list of installed programs - Em