[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile BUG: What's wrong with this?
From: |
Mark H Weaver |
Subject: |
Re: Guile BUG: What's wrong with this? |
Date: |
Fri, 06 Jan 2012 18:11:26 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Bruce Korb <address@hidden> writes:
> scm_from_locale_stringn() makes an optimization when the length is zero.
> It returns an immutable string of length zero.
Good catch!
> Two possible fixes:
>
> 1. remove the "optimization"
> 2. check the length in scm_string_upcase_x before choking.
I see a third possible fix, which I think I like best:
3. Make scm_nullstr into a mutable string. After all, it can't be
changed anyway, and the _only_ reference to it is from
scm_from_stringn, so the result should always be mutable.
What do other people think?
Mark
- Re: Guile: What's wrong with this?, (continued)
- Re: Guile: What's wrong with this?, Mark H Weaver, 2012/01/07
- Re: mutable interfaces - was: Guile: What's wrong with this?, Bruce Korb, 2012/01/07
- Re: mutable interfaces - was: Guile: What's wrong with this?, David Kastrup, 2012/01/07
- Re: mutable interfaces - was: Guile: What's wrong with this?, Mark H Weaver, 2012/01/07
- Re: mutable interfaces - was: Guile: What's wrong with this?, Mark H Weaver, 2012/01/07
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/06
- Re: Guile BUG: What's wrong with this?,
Mark H Weaver <=
- Re: Guile BUG: What's wrong with this?, Andy Wingo, 2012/01/06
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/06
- Re: Guile BUG: What's wrong with this?, Mark H Weaver, 2012/01/07
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/07
- Re: Guile BUG: What's wrong with this?, Mark H Weaver, 2012/01/07
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/07
- Re: Guile BUG: What's wrong with this?, Mark H Weaver, 2012/01/09
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/09
- Re: Guile BUG: What's wrong with this?, Andy Wingo, 2012/01/09
- Re: Guile BUG: What's wrong with this?, Bruce Korb, 2012/01/09