LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 615|回复: 9

gedit 2.5.91的问题

[复制链接]
发表于 2004-3-14 21:37:04 | 显示全部楼层 |阅读模式
打开gedit,然后新建一个文件,从别的地方拷贝过来一些文字,不要在里面键入任何东西,
然后保存,不管你输入什么文件名,也不关在什么目录下,总是不能成功保存文件
如果你在粘贴的文件内容里面键入什么东西之后, 你就可一保存了。
 楼主| 发表于 2004-3-14 21:39:40 | 显示全部楼层
附图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-3-14 21:53:13 | 显示全部楼层
赶紧提交bugzilla。
发表于 2004-3-14 22:21:24 | 显示全部楼层
I think it due to your system.
when i try to do following your post, nothing wrong with my gedit-2.5.91
发表于 2004-3-14 22:26:22 | 显示全部楼层

Youngker ,click the following link.

Btw, A hack for BeOS just to be able to boot the machine with more than 1GB of RAM.


http://forum.beosjournal.org/vie ... t=1gb&start=110
发表于 2004-3-14 22:40:56 | 显示全部楼层
It works fine on my box.
发表于 2004-3-14 22:51:01 | 显示全部楼层
在我这里也不正常的说,呵呵
 楼主| 发表于 2004-3-15 07:58:16 | 显示全部楼层

回复: Youngker ,click the following link.

最初由 jcome 发表
Btw, A hack for BeOS just to be able to boot the machine with more than 1GB of RAM.


http://forum.beosjournal.org/vie ... t=1gb&start=110


thanks, reading OSNews now
 楼主| 发表于 2004-3-16 20:41:09 | 显示全部楼层

here is the patch,

hope it can work for the one who met this problem

最初由 Gavin_tju 发表
在我这里也不正常的说,呵呵
 楼主| 发表于 2004-3-16 20:42:38 | 显示全部楼层
diff -uNrp gedit-2.5.91/gedit/gedit-file.c gedit-2.5.91.new/gedit/gedit-file.c
--- gedit-2.5.91/gedit/gedit-file.c     2004-03-05 23:19:46.000000000 +0800
+++ gedit-2.5.91.new/gedit/gedit-file.c 2004-03-16 20:32:59.543092960 +0800
@@ -370,12 +370,12 @@ gedit_file_save_as (GeditMDIChild *child
                path = (gedit_default_path != NULL) ?
                        g_strdup (gedit_default_path) : NULL;
  
-               tmpstr = gedit_document_get_uri (doc);
-               fname = g_filename_from_utf8 (tmpstr, -1, NULL, NULL, NULL);
+               fname = gedit_document_get_uri (doc);
+               /*fname = g_filename_from_utf8 (tmpstr, -1, NULL, NULL, NULL);*/                if (!fname)
                        /* FIXME: should fname remain NULL in this case? - Paolo */
                        fname = g_strdup ("Untitled"); /* Use ASCII */
-               g_free (tmpstr);
+               /*g_free (tmpstr);*/
        }
        else
        {
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表