Gtkmm-forge Digest, Vol 23, Issue 5



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 527687] ustring::erase(iterator) incorrect	for non ascii
      characters (glibmm (bugzilla.gnome.org))
   2. [Bug 527687] ustring::erase(iterator) incorrect	for non ascii
      characters (glibmm (bugzilla.gnome.org))
   3. [Bug 527687] ustring::erase(iterator) incorrect	for non ascii
      characters (glibmm (bugzilla.gnome.org))
   4. [Bug 527687] ustring::erase(iterator) incorrect	for non ascii
      characters (glibmm (bugzilla.gnome.org))
   5. [Bug 526831] G_OPTION_REMAINING no longer works	with
      OptionEntry (glibmm (bugzilla.gnome.org))
   6. [Bug 528037] New: Gdk::PixbufAnimationIter is	missing some
      functions (gtkmm (bugzilla.gnome.org))
   7. [Bug 528271] New: Missing documentation for spawn*	functions
      (glibmm (bugzilla.gnome.org))
   8. [Bug 528285] New: Glib::spawn_async* functions	need overloads
      without the child_setup param (glibmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Sat, 12 Apr 2008 18:40:25 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 527687] ustring::erase(iterator)
	incorrect	for non ascii characters
To: gtkmm-forge lists sourceforge net
Message-ID: <20080412184025 45B9223F501 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=527687

  glibmm | strings | Ver: 2.12.x




------- Comment #2 from Murray Cumming  2008-04-12 18:40 UTC -------
Created an attachment (id=109134)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=109134&action=view)
test_with_try_catch.cpp

The same test, with try/catch blocks.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=527687.



------------------------------

Message: 2
Date: Sat, 12 Apr 2008 18:43:22 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 527687] ustring::erase(iterator)
	incorrect	for non ascii characters
To: gtkmm-forge lists sourceforge net
Message-ID: <20080412184322 6081E23F501 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=527687

  glibmm | strings | Ver: 2.12.x

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |murrayc murrayc com




------- Comment #3 from Murray Cumming  2008-04-12 18:43 UTC -------
Something strange definitely seems to be happening. I don't understand why the
first test case throws an error but the second one doesn't.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=527687.



------------------------------

Message: 3
Date: Sun, 13 Apr 2008 00:30:06 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 527687] ustring::erase(iterator)
	incorrect	for non ascii characters
To: gtkmm-forge lists sourceforge net
Message-ID: <20080413003006 B6FBA23F501 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=527687

  glibmm | strings | Ver: 2.12.x

jarro 2783 gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #109112|0                           |1
        is obsolete|                            |




------- Comment #4 from jarro 2783 gmail com  2008-04-13 00:30 UTC -------
Created an attachment (id=109152)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=109152&action=view)
test case with try catch which actually shows the bug now

It didn't like the s += x + "cd". So I split it into s += x and s += "cd". It
prints the utf 8 character 0x0545 first, then prints Error3.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=527687.



------------------------------

Message: 4
Date: Sun, 13 Apr 2008 10:54:15 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 527687] ustring::erase(iterator)
	incorrect	for non ascii characters
To: gtkmm-forge lists sourceforge net
Message-ID: <20080413105415 EC7F123F504 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=527687

  glibmm | strings | Ver: 2.12.x

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




------- Comment #5 from Murray Cumming  2008-04-13 10:54 UTC -------
Thanks.

I believe I have fixed this in glibmm svn trunk:

2008-04-13  Murray Cumming  <murrayc murrayc com>

        * glib/glibmm/ustring.cc erase(): Create an end iterator and use it, 
        instead of just using the std::string(iterator) erase implementation, 
        because that only removes one byte, which can make the whole string 
        invalid UTF-8.
        Bug #527687 (Jarro).


Here is the new implementation. I suggest that you do something similar in your
application code until this fix is widely available:

ustring::iterator ustring::erase(ustring::iterator p)
{
  ustring::iterator iter_end = p;
  ++iter_end;

  return iterator(string_.erase(p.base(), iter_end.base()));
}

I'm not sure if that's the most efficient implementation, so I'd welcome any
patch to improve it.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=527687.



------------------------------

Message: 5
Date: Sun, 13 Apr 2008 11:18:17 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 526831] G_OPTION_REMAINING no longer
	works	with OptionEntry
To: gtkmm-forge lists sourceforge net
Message-ID: <20080413111817 1505F23F504 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=526831

  glibmm | general | Ver: 2.16.x

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from Murray Cumming  2008-04-13 11:18 UTC -------
This is fixed in svn trunk so it will get into a future glibmm 2.16.x tarball:

2008-04-13  Murray Cumming  <murrayc murrayc com>

        * glib/src/optionentry.ccg: set_long_name(): Do not use NULL for an 
        empty string, because "" has a special meaning to GOptionEntry - it 
        is the definition of G_OPTION_REMANING.
        * examples/options/main.cc: Add an entry with the long name 
        G_OPTION_REMAINING, to list additional non-named arguments. More 
        explicit API should be added for this.
        Bug #526831 (Christian Lundgren).

I do wonder when this could have broken. I can imagine that I broke it in svn
in the last few days while trying to fix a leak, but I can't see a change that
might have broken the tarball releases before that.

If this bug is really in a tarball, then I suggest that you access the
GOptionEntry directly, with gobj(), to work around the problem until the fix is
widely distributed.

Thanks for the bug report. 


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=526831.



------------------------------

Message: 6
Date: Mon, 14 Apr 2008 13:40:21 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528037] New: Gdk::PixbufAnimationIter
	is	missing some functions
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-528037-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528037

  gtkmm | general | Ver: 2.12.x
           Summary: Gdk::PixbufAnimationIter is missing some functions
           Product: gtkmm
           Version: 2.12.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: dexter balabit hu
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


It seems that some functions have not been wrapped. eg:

Gdk::PixbufAnimationIter::get_pixbuf()
Gdk::PixbufAnimationIter::get_delay_time()
Gdk::PixbufAnimationIter::advance()


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528037.



------------------------------

Message: 7
Date: Tue, 15 Apr 2008 18:24:48 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528271] New: Missing documentation for
	spawn*	functions
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-528271-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528271

  glibmm | documentation | Ver: unspecified
           Summary: Missing documentation for spawn* functions
           Product: glibmm
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: documentation
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: jonathon quotidian org
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


See http://gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__Spawn.html

We should probably port the documentation from glib:
http://library.gnome.org/devel/glib/unstable/glib-Spawning-Processes.html


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528271.



------------------------------

Message: 8
Date: Tue, 15 Apr 2008 19:30:21 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528285] New: Glib::spawn_async*
	functions	need overloads without the child_setup param
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-528285-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528285

  glibmm | general | Ver: unspecified
           Summary: Glib::spawn_async* functions need overloads without the
                    child_setup param
           Product: glibmm
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: jonathon quotidian org
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


If you don't need to do any setup for the child process, you shouldn't have to
pass a child_setup function.  In fact, if you try to do it on windows, it will
print a warning on the terminal:

(GTKonsole.exe:1552): GLib-WARNING **: passing a child setup function to the
g_spawn functions is pointless and dangerous on Win32
foo()


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528285.



------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 23, Issue 5
******************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]